Skip to content

v0.8.2.221031

Compare
Choose a tag to compare
@fufuok fufuok released this 31 Oct 00:41
· 118 commits to master since this release

🎉 Utilities for go (常用的助手函数) 性能至上

  • xsync.Map xsync.MapOf xsync.Counter 重构优化
    • 支持可比较类型的泛型键
    • 增加 m.Clear m.Computer m.LoadOrCompute
    • 增加通用的初始化方法
      • NewHashMapOf[K comparable, V any](hasher ...func(maphash.Seed, K) uint64) HashMapOf[K, V]
  • 增加 FastRand64 FastRandu
  • 增加基于 xxHash 的 Hash 算法生成器
    • GenHasher64[K comparable]() func(K) uint64
    • GenSeedHasher64[K comparable]() func(maphash.Seed, K) uint64
  • 增加测试助手函数 AssertNotEqual AssertNotEqualf
  • 增加 SafeGo Recover WaitSignal 及 IP 相关助手函数