-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(metarepos): add mrpb.StorageNodeUncommitReport pool
This patch adds an `mrpb.StorageNodeUncommitReport` pool, which is `proto/mrpb.storageNodeUncommitReportPool`. It reduces heap objects allocated repeatedly whenever processing reports received from storage nodes. Below heap profiling is the previous result. ``` flat flat% sum% cum cum% 70865580 8.38% 44.73% 71293773 8.43% github.com/kakao/varlog/internal/metarepos.(*reportCollectExecutor).processReport ``` Now here it is after applying this patch. ``` flat flat% sum% cum cum% 20734504 2.10% 75.92% 42122814 4.26% github.com/kakao/varlog/internal/metarepos.(*reportCollectExecutor).processReport ```
- Loading branch information
Showing
2 changed files
with
27 additions
and
8 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