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.
Path mapping requires turning `args.add(file.dirname)` into `args.add_all([file], map_each = _dirname)`. This usage can be made more memory efficient if we * avoid storing the count of 1 by encoding it in `VectorArg#features`; * intern `StarlarkSemantics` in `VectorArg` as a single instance is shared across the build. This saves 4 bytes for each `map_each` usage. Closes bazelbuild#23638. PiperOrigin-RevId: 676443873 Change-Id: I9539431011d3cbca1fb53357d00a7d0c0e53f522
- Loading branch information
1 parent
dafa4b5
commit d7c7a70
Showing
2 changed files
with
41 additions
and
19 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