go-zero/core/errorx
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)
2020-09-18 22:45:01 +08:00
..
atomicerror_test.go optimize AtomicError (#82) 2020-09-18 22:45:01 +08:00
atomicerror.go optimize AtomicError (#82) 2020-09-18 22:45:01 +08:00
batcherror_test.go initial import 2020-07-26 17:09:05 +08:00
batcherror.go initial import 2020-07-26 17:09:05 +08:00