-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revise ThreadCachedServiceData per-key export caching
Summary: Cut `ThreadCachedServiceData::ExportCacheMap` etc. It's an extra map that every call to `ThreadCachedServiceData::addStatValue` has to traverse, and the map lookup to find the export status can be just as costly as the map lookup to find the stat. Instead, just cache the export status in the thread-local stat-map value. Some aspects of the `ExportType` overloads of `addStatValue` and `clearStat` have seemingly strange behavior. But, for now, we attempt to preserve the current behavior. Differential Revision: D68659181 fbshipit-source-id: f9028696f9007d0e2bafeddd35551f1663ff6149
- Loading branch information
1 parent
283e843
commit df955b8
Showing
4 changed files
with
77 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
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
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