Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance of get_files #30

Merged
merged 1 commit into from
May 14, 2024

Conversation

giacomocavalieri
Copy link
Contributor

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.

I tried it on the Gleam's compiler repo (~40'000 files) and it went down from ~4s to ~2s

@bcpeinhardt
Copy link
Owner

Fab, thanks @giacomocavalieri !!

@bcpeinhardt bcpeinhardt merged commit 22ae565 into bcpeinhardt:main May 14, 2024
1 check passed
@giacomocavalieri giacomocavalieri deleted the perf-optimisation branch May 15, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants