Performance optimization

This commit is contained in:
Andrea Cavalli 2022-07-19 02:33:42 +02:00
parent d1c7212505
commit 81762197bb

View File

@ -125,8 +125,7 @@ public class SourcesGenerator {
// Get the files list
var generatedFilesToDelete = Files
.walk(outPath)
.filter(Files::isRegularFile)
.find(outPath, Integer.MAX_VALUE, (filePath, fileAttr) -> fileAttr.isRegularFile())
.map(outPath::relativize)
.collect(Collectors.toCollection(HashSet::new));