alphadose / haxmap

Fastest and most memory efficient golang concurrent hashmap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When to use this package

vtolstov opened this issue · comments

In which cases using this package really needed vs standard go map with mutex?
For example if I have 10 entries?

for small datasets there wouldn't be any noticeable difference between haxmap and the default go map.

the difference would start to show with an increase in dataset size and more number of goroutines reading/writing concurrently in which case mutex locking/unlocking would be much slower as compared to haxmap which uses lock-free linked list internally

Thank you