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

Revert create_output memoization #120

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Conversation

kylewlacy
Copy link
Member

This PR reverts the changes made to create_output from #115. The change in question was to use a hashmap to memoize which output paths had been written when create_output was called (the goal was to avoid writing to the same path multiple times)

It turns out this change could cause severe slowdowns in some cases. I started digging into why building the eza package locally was taking so long-- around 3-4 minutes-- even though the actual Rust build was pretty fast (about 30 seconds). I tested again with a version of Brioche before #115, and the build was much faster: about 1m18s

I did lots of experiments and rebuilds, and finally narrowed the problem down to create_output. Undoing the create_output changes from #115 while leaving everything else in place made the build finish in 1m10s, even faster than before!

@kylewlacy kylewlacy merged commit 56a9cc0 into main Sep 6, 2024
5 checks passed
@kylewlacy kylewlacy deleted the revert-create-output-changes branch September 6, 2024 08:49
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.

1 participant