-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ProtoSourceInfo and use "_virtual_import" substring for import…
… paths This reduces heap memory usage, because we can use depsets of Files, instead of depsets of ProtoSourceInfo, which has a new instance of class with an Object array. The effect of memory saving might be bigger in Bazel, because import_prefixes might be more commonly used. The drawback is, that we can only strip prefixes using renaming to _virtual_imports subdirectory. Alternatively we could keep ProtoSourceInfo and implement at least strip_import_prefix without renames. Measurements don't show any improvement in this case. PiperOrigin-RevId: 537050475 Change-Id: Iff4ed7e0d4e4dfaab79449178c4b1278c1f369d0
- Loading branch information
1 parent
8d06915
commit 711f1b0
Showing
5 changed files
with
49 additions
and
154 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
44 changes: 0 additions & 44 deletions
44
src/main/java/com/google/devtools/build/lib/rules/proto/ProtoSource.java
This file was deleted.
Oops, something went wrong.
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