Skip to content

Implement a Map based on ArrayOfBufferBackedObjects? #42

Open
@webhype

Description

Hi, love the BBO library but ArrayOfBufferBackedObjects (ABBOs) are of limited use out-of-the-box because there's no mapping of string -> BBO, i.e. there's no Map object yet. I'm struggling to find a way to get the non-linear access speed of the JavaScript native Map class, but with ABBOs.

I keep coming back to linear search speed, i.e. traversing the BBO array until I found the matching object. Sure I could program my own Hashmap from scratch, calculating an index based on the string, and hope we can avoid collisions, and all that. Tedious.

Anyone know of a project that implements something like BBO.Map? Thanks!

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