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

Make the file generation evaluation faster #219

Merged
merged 4 commits into from
Jun 26, 2024
Merged

Conversation

thufschmitt
Copy link
Member

Various improvements to the file generation that together bring some 1.15x speedup to the Nickel evaluation

Théophane Hufschmitt added 3 commits June 26, 2024 18:03
Reduce a bit the number of string interpolations, this causes a ~1.14x
speedup
De-bloat a bit the module, and make some room to put nix-string-related
operations
Directly concat all of them at once instead of nesting them.

Currently brings a ~1.8x speedup, although part of it is redundant with
#218, so the actual speedup
taken it into account is closer to 1.1x (still nice though)
@thufschmitt thufschmitt requested a review from yannham June 26, 2024 16:14
lib/nix-interop/derivation.ncl Outdated Show resolved Hide resolved
@thufschmitt thufschmitt added this pull request to the merge queue Jun 26, 2024
Merged via the queue into main with commit 7f83a26 Jun 26, 2024
1 check passed
@thufschmitt thufschmitt deleted the faster-file-regen branch June 26, 2024 17:04
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