Skip to content

Enable emplace feature for timers #4718

Open
@githejie

Description

@githejie

Issue description

https://github.com/zeromq/libzmq/blob/master/src/timers.hpp#L70
Using insert to add key-value pairs to this _timers std::multimap container may cause unnecessary copying or moving.
Using emplace instead of insert can construct objects inside the container, thus avoiding unnecessary copying or moving.

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