forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1682006 - Don't call Truncate() on the return string in GetProper…
…tyValue. r=xidorn Turns out this causes a bit of overhead when appending to an AutoString, because Truncate() calls SetToEmptyBuffer(), which makes it go from inline-string to buffer string, and next time we append we need to turn the string from a buffer-based string to an inline string again, which is some minor, but measurable, work, while profiling some micro-benchmarks. Probably we should make Truncate() a no-op for a zero-length string, but I'll send that separately. Differential Revision: https://phabricator.services.mozilla.com/D99493
- Loading branch information
Showing
3 changed files
with
11 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