Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAccelerate build context directory file walk #1442
Conversation
java.nio.file.Path#toUri executes faster compared to java.io.File#toUri
@bsideup I could use some input on this :) |
ping (before this goes stale) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@swiedenfeld sorry for letting it stale, I will try to find time and have a look at it soon! |
This PR addresses the performance issue described in #1409.
#1412 has partially improved performance by memoizing frequently reused ignore patterns.
These commits now improve performance on my Windows 10 machine further by:
Files.walk
to efficiently walk the build context directory. It visits files and subdirectories in parallel and filters any items efficiently ignoredWith #1412 and these code changes, build context scans in my unit test setup (see #1412) on my Windows 10 machine now pass in about 6 seconds, while they previously used to take around 27 seconds.