Skip to content

Add SortedArrayMaps? #73

@pburka

Description

@pburka

I have an application where we need many sorted maps of longs to Objects, and we wish to use a very space efficient implementation. We use a custom map backed by a sorted long[] and a corresponding Object[]. This is very similar to fastutil's Long2ObjectArrayMap, except that it provides a NavigableMap interface. Entries are found using a simple binary search. In our expected use case, keys are added to the map in order, so we're not worried about the performance of adding or removing arbitrary keys.

Would it make sense to add this functionality to fastutil? e.g. Long2ObjectSortedArrayMap

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