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.
Reduce needless contention in the include scanner's fileParseCache. The
computeIfAbsent() function of ConcurrentHashMap is supposed to have a fast implementation and the map will then allow ~number of processors concurrent writes. However, reading a file and extracting the include lines can be a costly IO operation that does not fit this bill. Use futures instead. RELNOTES: None. PiperOrigin-RevId: 355837364
- Loading branch information
1 parent
52c7652
commit d202bd5
Showing
1 changed file
with
29 additions
and
44 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