Commit Graph

3 Commits (a290ff4486a25e04894e9d5d07b18b745d4e7b40)

Author SHA1 Message Date
NevS 004ee488a6
fix AtomicError panic when Set nil (#1049) (#1050) 3 years ago
Changkun Ou 762af9dda2
optimize AtomicError (#82)
This commit optimize AtomicError using atomic.Value. Benchmarks:

name               old time/op  new time/op  delta
AtomicError/Load-6   305ns ±11%    12ns ± 6%  -96.18%  (p=0.000 n=10+10)
AtomicError/Set-6   314ns ±16%    14ns ± 2%  -95.61%  (p=0.000 n=10+9)
4 years ago
kevin 7e3a369a8f initial import 4 years ago