HaxMap, a concurrent hashmap faster and more memory-efficient than golang's sync.Map

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • haxmap

    Fastest and most memory efficient golang concurrent hashmap

  • This behaviour is now fixed with https://github.com/alphadose/haxmap/commit/bc3b9a6adfc4600fd948124f5d9b74139dfe6d39

  • xxhash

    A Go implementation of the 64-bit xxHash algorithm (XXH64) (by cespare)

  • 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.

  • 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.

    WorkOS logo
  • hashmap

    A Golang lock-free thread-safe HashMap optimized for fastest read access.

  • 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.

  • xxHash

    Pure Go implementation of xxHash (32 and 64 bits versions) (by pierrec)

  • 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

  • avo

    Generate x86 Assembly with Go

  • You can use github.com/mmcloughlin/avo for generating the assembly use Go.

  • sonic

    A blazingly fast JSON serializing & deserializing library (by bytedance)

  • Also see sonic for some nice performance tricks github.com/bytedance/sonic

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts