labml icon indicating copy to clipboard operation
labml copied to clipboard

Improve performance traversing files

Open mhenrixon opened this issue 1 month ago • 1 comments

From:

Finding files... (Finding files) Duration: 234.895726 seconds Parsing files...

To:

Finding files... (Finding files) Duration: 0.425144 seconds

mhenrixon avatar Nov 28 '25 18:11 mhenrixon

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 }

?

presidentbeef avatar Dec 01 '25 19:12 presidentbeef

@mhenrixon can you try the above suggestion?

presidentbeef avatar Dec 17 '25 00:12 presidentbeef