Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Compile each file match pattern only once#1411

Closed
swiedenfeld wants to merge 2 commits into
docker-java:masterdocker-java/docker-java:masterfrom
swiedenfeld:compile_less_patternsCopy head branch name to clipboard
Closed

Compile each file match pattern only once#1411
swiedenfeld wants to merge 2 commits into
docker-java:masterdocker-java/docker-java:masterfrom
swiedenfeld:compile_less_patternsCopy head branch name to clipboard

Conversation

@swiedenfeld

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 swiedenfeld deleted the compile_less_patterns branch June 12, 2020 12:43
@swiedenfeld

Copy link
Copy Markdown
Contributor Author

Duplicates #1412

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.