Skip to content

Optimization: when creating empty map, return common instance #60

@object88

Description

@object88

In order to prevent repeatedly creating Hashmaps with no contents, when a new hashmap is requested, if there are no contents, return a static instance.

This is what immutable.js does.

This may effect some unit tests.

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