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.
Fork Guava's CompactHashMap into Bazel as it is not public in Guava.
CompactHashMap can substantially reduce runtime and especially generated garbage in various places. RELNOTES: None. PiperOrigin-RevId: 247011181
- Loading branch information
1 parent
c28bc24
commit 291678d
Showing
3 changed files
with
929 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
src/main/java/com/google/devtools/build/lib/collect/compacthashmap/BUILD
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package(default_visibility = ["//src:__subpackages__"]) | ||
|
||
filegroup( | ||
name = "srcs", | ||
srcs = glob(["**"]), | ||
visibility = ["//src/main/java/com/google/devtools/build/lib:__pkg__"], | ||
) | ||
|
||
# Library of collection utilities. | ||
java_library( | ||
name = "compacthashmap", | ||
srcs = glob([ | ||
"*.java", | ||
]), | ||
deps = [ | ||
"//third_party:guava", | ||
"//third_party:jsr305", | ||
], | ||
) |
Oops, something went wrong.