Skip to content

cpp: improve performace of MessagerMap whose key is string type #11

@wenchy

Description

@wenchy

using MessagerMap = std::unordered_map<std::string, std::shared_ptr<Messager>>;

  1. Maybe CRC32 is a good option: convert string to integer to improve hasher performance.
  2. use std::array instead of std::unordered_map to boost lookup speed. (NOTE: how to generate array index -> messager name mapping?)

NOTE: more details need to be added...

Metadata

Metadata

Assignees

No one assigned

    Labels

    WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions