platform_build_blueprint/pathtools
Colin Cross 2523698c12 Speed up globs with sharding
There are a few cases that force all globs to be rerun at the beginning
of the build (changes to bpglob or dependencies, second build after a
clean build).  The number of globs has gotten high enough that rerunning
them all can have significant overhead to start bpglob for each one.

Replace the per-glob bpglob invocations with sharded invocations using
1024 hash buckets.

Bug: 159845846
Test: glob_test.go
Test: m nothing && m nothing
Test: build/soong/bootstrap_test.sh
Change-Id: Ife1f7a03c8f6b25d1be01531425d8dc2c76d1ea0
2021-04-15 11:04:11 -07:00
..
testdata Fix recursive globs through symlinks 2018-09-24 15:09:32 -07:00
fs.go Make Glob return a GlobResult 2021-04-08 11:03:17 -07:00
fs_test.go Fix reading absolute paths through OsFs 2020-01-10 13:52:22 -08:00
glob.go Speed up globs with sharding 2021-04-15 11:04:11 -07:00
glob_test.go Make Glob return a GlobResult 2021-04-08 11:03:17 -07:00
lists.go Fix ReplaceExtension 2021-02-16 21:45:01 -08:00
lists_test.go Fix ReplaceExtension 2021-02-16 21:45:01 -08:00