forked from bazelbuild/bazel
-
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.
Disable string interning for label name attribute value
Weak interner inside `StringCanonicalizer` does have some memory overhead. Some strings only have one instance during a blaze build. And thus, interning these strings introduces memory overhead from the additional `Map.entry` inside weak interner's `ConcurrentHashMap`. One obvious example of these strings is the label name. It is rarely that label name duplicate with each other. So this cl avoids interning label name (attribute `name`'s value) in order to get rid of the additional map entries. PiperOrigin-RevId: 540018375 Change-Id: I6bcfb4349b6f45927de51537c8cc091228d1012e
- Loading branch information
1 parent
6fa0237
commit 50872eb
Showing
5 changed files
with
33 additions
and
6 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
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