Skip to content

Performance: Use maps instead of objects.Β #211

@aikar

Description

@aikar

In numerous places across the project, standard JS objects are used instead of Maps for Map like data structures.

Maps offer better performance over objects-as-maps, and can be done in places like callback storage (ie object.callbacks[id] = cb;) type patterns.


sock.callbacks[cbId].sock = sentSock;

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