Skip to content

when redisReaderFeed big buffer, redisReaderGetReply will cause high cpu usage #656

@hongliuliao

Description

@hongliuliao

when redis reader feed 40m buffer, the get reply will cause high cpu usage like as follow:
image
Because in redisReaderGetReply method, after a reply parsed, it will use "sdsrange" to move mem and when the buffer is big, the memmove() will cost many time & cpu!
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions