Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
This behaviour is now fixed with https://github.com/alphadose/haxmap/commit/bc3b9a6adfc4600fd948124f5d9b74139dfe6d39
Nopes, the hashing algorithm was exclusively meant for 64 bit archs https://github.com/cespare/xxhash hence it will show invalid results on any 32 bit architectures.
Pre-allocating would not fix https://github.com/cornelk/hashmap/issues/47 as the bug is in the linked list. This is not grow related but an issue with concurrent Add/Delete on the list.
I shall add a 32 bit variant of haxmap too in the near future using this 32 bit variant of xxHash https://github.com/pierrec/xxHash/tree/master/xxHash32
You can use github.com/mmcloughlin/avo for generating the assembly use Go.
Also see sonic for some nice performance tricks github.com/bytedance/sonic