-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(storage): improve scanning with GLSN
This pull request enhances the performance of scanning with GLSN by using a pebble iterator to retrieve written data instead of calling Get for each key. ``` goos: darwin goarch: amd64 pkg: github.com/kakao/varlog/internal/storage cpu: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz │ base │ diff │ │ sec/op │ sec/op vs base │ Storage_ScanWithGLSN-8 2.149m ± 1% 1.021m ± 1% -52.51% (p=0.000 n=20) │ base │ diff │ │ B/op │ B/op vs base │ Storage_ScanWithGLSN-8 32.12Ki ± 0% 31.73Ki ± 0% -1.21% (p=0.000 n=20) │ base │ diff │ │ allocs/op │ allocs/op vs base │ Storage_ScanWithGLSN-8 2.004k ± 0% 2.006k ± 0% +0.10% (p=0.000 n=20) ```
- Loading branch information
Showing
1 changed file
with
54 additions
and
12 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