Commit Graph

7 Commits

Author SHA1 Message Date
NevS
004ee488a6
fix AtomicError panic when Set nil (#1049) (#1050) 2021-09-23 14:23:02 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. (#628) 2021-04-15 19:49:17 +08:00
Kevin Wan
7472d1e70b
fix golint issues in core/errorx (#480) 2021-02-19 10:08:38 +08:00
Kevin Wan
54414db91d
fix golint issues, exported doc (#451) 2021-02-08 21:31:56 +08:00
kevin
dfe6e88529 use goctl template to generate all kinds of templates 2020-10-19 23:13:18 +08:00
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
kevin
7e3a369a8f initial import 2020-07-26 17:09:05 +08:00