calvin-map

0.1.0 • Public • Published

Map

A simple ES6 map implimentation, hopefully performant, mainly for learning purposes.

Currently uses a linked list for storing the values, this is likely either very good or very bad performance wise.

For keys that are comparable by value (e.g. not objects), we use a dictionary to speed up lookup, the results for numbers when adding 10,000 values and when addding 100 values. In other words there is some overhead but it pays for itself.

/calvin-map/

    Package Sidebar

    Install

    npm i calvin-map

    Weekly Downloads

    6

    Version

    0.1.0

    License

    ISC

    Last publish

    Collaborators

    • cwmma