labml
labml copied to clipboard
Improve performance traversing files
From:
Finding files... (Finding files) Duration: 234.895726 seconds Parsing files...
To:
Finding files... (Finding files) Duration: 0.425144 seconds
I think it might make more sense to change
find_paths("**", "*.{erb,haml,slim}").reject { |path| File.basename(path).count(".") > 1 }
to
find_paths(".", "*.{erb,haml,slim}").reject { |path| File.basename(path).count(".") > 1 }
?
@mhenrixon can you try the above suggestion?