Closed giacomocavalieri closed 3 months ago
This PR improves the performance of get_files, the trick was implementing it as a single try_fold to avoid doing several passes on the files list.
get_files
try_fold
I tried it on the Gleam's compiler repo (~40'000 files) and it went down from ~4s to ~2s
Fab, thanks @giacomocavalieri !!
This PR improves the performance of
get_files
, the trick was implementing it as a singletry_fold
to avoid doing several passes on the files list.I tried it on the Gleam's compiler repo (~40'000 files) and it went down from ~4s to ~2s