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
fetchzip: cleanup and improve metrics #247527
Conversation
@amjoseph-nixpkgs
Yes, this whole thing was a bit disheartening for me. Changes that make huge improvements to local eval produce negative results on OfBorg and vice versa. |
Okay, so, apparently OfBorg's Compare: So, this is done, I think. |
ping @SuperSandro2000 @hraban who edited pname logic before. Note how |
'' | ||
|
||
# Remove non-owner write permissions | ||
# Fixes https://github.com/NixOS/nixpkgs/issues/38649 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you remove this comment? Is it obsolete?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not, I moved it down below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha. So this is all moved around as an optimization, if I understand your other comments--Is removing these string literal concatenations actually a noticeable improvement? Seems like a pretty basic optimization step for nix to take, I'm surprised this is noticeable :/ what's the speedup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's probably no speedup there, but it does take less allocations.
Thanks @amjoseph-nixpkgs! |
This cleans up
fetchzip
andfetchurl
derivations a bit, improving Nixpkgs metrics.fetchzip
seems to change semantics with me removing arguments there, but it does not, since all thatpname
logic was ignored by underlyingfetchurl
anyway.