-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loader: use atomic.Value to store snapshot (#34)
* loader: use atomic.Value to store snapshot This eliminates the need to use a mutex. ``` benchmark old ns/op new ns/op delta BenchmarkSnapsot-12 15.1 2.46 -83.71% BenchmarkSnapsot_Parallel-12 36.6 0.51 -98.60% ``` * loader: fix spelling
- Loading branch information
1 parent
2c2ecd2
commit 7ddd2be
Showing
2 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters