forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-use callback objects in the DataUseAggregator.
This CL makes the DataUseAggregator re-use the same callback objects separately for annotation and amortization calls, as an optimization to avoid allocating and holding on to a new callback object for every call. This CL should have no noticible effects other than using less memory. BUG= Review URL: https://codereview.chromium.org/1456793003 Cr-Commit-Position: refs/heads/master@{#360437}
- Loading branch information
1 parent
c9e3b72
commit 2955091
Showing
2 changed files
with
28 additions
and
14 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