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
Openssl in coreutils makes *sum programs much faster (RFC) #43983
Conversation
sha256sum, md5sum, etc.
@GrahamcOfBorg eval |
@@ -1,5 +1,6 @@ | |||
{ stdenv, lib, buildPackages | |||
, autoreconfHook, texinfo, fetchurl, perl, xz, libiconv, gmp ? null | |||
, openssl ? null |
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.
You shouldn't need the default. openssl will always be defined in a callPackage.
This adds about 3 MiB to the coreutils closure size. However, given that openssl is a pretty ubiquitous dependency anyway, that's probably not a big deal. |
Suggested by matthewbauer review.
Ok. I'll merge it when these automatic tests finish. |
Why was this merged to master instead of staging? |
Reverted in 0eb1316 since this broke stdenv and as a result, everything. FYI. |
coreutils is part of stdenv, which doesn't allow openssl currently. It's unclear that adding openssl to stdenv was intended, but if it was it was not discussed or mentioned. To unbreak "all the things", reverting until this has been discussed and a proper fix has been put together. This reverts commit df9f76c, reversing changes made to 585ded7.
coreutils is part of stdenv. To build stdenv there is a pre-build bootstrap tarball. To use openssl in stdenv it also needs to be part of the boostraping, I think. |
would a stdenv.isLinux be enough? I don't know what's that Darwin condition. |
sha256sum, md5sum,. run much faster. Factor 2x to 4x.
You can evaluate that by comparing the cpu time of your 'time sha256sum bigfile' and 'time openssl sha256 bigfile'.
What do you think? I use these a lot, and I guess that git-annex users too.