-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scrooge-serializer: Cache maxReusableBufferSize value in ThriftStruct…
…Serializer instances Problem Profiling serialization-heavy workflows shows `ThriftStructSerializer` continuously retrieving the value of `maxReusableBufferSize` flag. Solution Cache the value of the `maxReusableBufferSize` on `ThriftStructSerializer` instance creation, treat it as fixed during the instance lifetime. The value of this flag typically does not change during the run time of an application, so this was deemed an acceptable tradeoff. JIRA Issues: CSL-6421 Differential Revision: https://phabricator.twitter.biz/D783669
- Loading branch information
Showing
3 changed files
with
23 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
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