Show HN: Integer Map Data Structure
github.com
Show HN: Integer Map Data Structure
1–10 of 28 posts
Re: Show HN: Integer Map Data Structure
#2Re: Show HN: Integer Map Data Structure
#3[0] https://github.com/libgdx/libgdx/blob/master/gdx/src/com/bad...
Re: Show HN: Integer Map Data Structure
#4https://julesjacobs.com/2014/11/11/immutable-vectors-csharp....
His implementation uses buffers of capacity 32, generics, and bit shifting to do lookups.
Re: Show HN: Integer Map Data Structure
#5Neat, thank you! I'd love to see how it compares to the libgdx IntMap[0]. [0] https://github.com/libgdx/libgdx/blob/master/gdx/src/com/bad...
Re: Show HN: Integer Map Data Structure
#6I couldn't immediately see, is there mention of whether insertions invalidate iterators? Maybe not strictly needed for my use-case but good to know.
Re: Show HN: Integer Map Data Structure
#7Neat, thank you! I'd love to see how it compares to the libgdx IntMap[0]. [0] https://github.com/libgdx/libgdx/blob/master/gdx/src/com/bad...
This is a radix tree (ordered, does more allocations), that is a hash table. Also TFA is C/C++, libgdx looks like Java.
Re: Show HN: Integer Map Data Structure
#8FWIW there is prior art here. e.g. see IntMap in Haskell: https://hackage.haskell.org/package/containers-0.7/docs/Data...