Skip to content

Shortcut when message can be sent immediately #2

Description

@takluyver

@asvetlov in #1 :

mandatory call_soon in .send_multipart() makes significant performance degradation -- usually ZMQ message may be sent immediately.

It would be fairly easy for send_multipart to check if there are no messages waiting, and if not, try to send one immediately, using the DONTWAIT flag, and then only queue it in the rare case that that's not possible.

The only reason I didn't do this is that I was writing the simplest possible thing I could use, and performance wasn't very important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions