diff options
author | nharmata <nharmata@google.com> | 2018-03-15 09:35:48 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-15 09:37:05 -0700 |
commit | 90750e66344819a9fef4f0f0a633bc85e4d5d72d (patch) | |
tree | 285f942373d74e20ee76043e9a5799251599db4c /src/main/java/com/google/devtools/build/docgen/RuleFamily.java | |
parent | 2267e2a783231d02822d182012b8047f4694be5a (diff) |
Optimize GC churn due to PackageFunction#getContainingDirectory. While I'm here, also slightly restructure the code in #handleLabelsCrossingSubpackagesAndPropagateInconsistentFilesystemExceptions to make it more readable (and defer PackageIdentifier allocations).
Alternatives considered: Add a PathFragment#getParentDirectoryOfRelative(String other) instance method, and use it in PackageFunction#getContainingDirectory. I thought the approach in this CL would be preferable to adding a specialized method like that to PathFragment.
RELNOTES: None
PiperOrigin-RevId: 189197855
Diffstat (limited to 'src/main/java/com/google/devtools/build/docgen/RuleFamily.java')
0 files changed, 0 insertions, 0 deletions