-
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): use a lightweight method to get the data size of the s…
…torage The previous method to get the data size of storage belonging to a log stream was costly. Concretely it used too many heap objects to call `filepath.Walk` API. To avoid this problem, this patch changes the implementation of `internal/storage.(*Storage).DiskUsage` to use the built-in method of pebble DB - `DiskSpaceUsage`. Resolves #210
- Loading branch information
Showing
3 changed files
with
55 additions
and
58 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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