Compile each file match pattern only once by swiedenfeld · Pull Request #1411 · docker-java/docker-java
Repository navigation
Compile each file match pattern only once - #1411
Closed
swiedenfeld wants to merge 2 commits into docker-java:master from swiedenfeld:compile_less_patterns
Closed
Compile each file match pattern only once #1411 swiedenfeld wants to merge 2 commits into docker-java:master from swiedenfeld:compile_less_patterns
Conversation
swiedenfeld commented Jun 12, 2020
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 and others added 2 commits June 12, 2020 14:15
Compile each file match pattern only once
e9ab97a
#1409
Merge branch 'master' into compile_less_patterns
e881505
swiedenfeld
closed this
Jun 12, 2020
swiedenfeld
deleted the
compile_less_patterns
branch
June 12, 2020 12:43
swiedenfeld commented Jun 12, 2020
Copy link Copy Markdown
Contributor
Author
|
Duplicates #1412 |
.dockerignore-excluded directory are still added to the build context
#2701
Open
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment