FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Compile each file match pattern only once by swiedenfeld · Pull Request #1411 · docker-java/docker-java · GitHub

Repository navigation

Compile each file match pattern only once - #1411

Closed
swiedenfeld wants to merge 2 commits into
docker-java:masterfrom
swiedenfeld:compile_less_patterns
Closed

swiedenfeld wants to merge 2 commits into
docker-java:masterfrom
swiedenfeld:compile_less_patterns

Conversation

Copy link
Copy Markdown
Contributor

I ran a profiler to analyse performance of ScannedResult # addFilesInDirectory in the scenario described in #1409. All ignore strings must be matched on each of the +60k files, and a not neglible amount of time is spent compiling the Strings from ignores into patterns over and over again. It seems sensible to cache already compiled patterns into a map for quick resolution.

Unfortunately, it does not improve the situation in #1409 too much. The majority of processing time is spent walking the directory tree, which is possibly bound by I/O.

swiedenfeld deleted the compile_less_patterns branch June 12, 2020 12:43

Copy link
Copy Markdown
Contributor Author

Duplicates #1412

This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL