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

Openssl in coreutils makes *sum programs much faster (RFC) #43983

Merged
merged 2 commits into from Jul 28, 2018

Conversation

viric
Copy link
Member

@viric viric commented Jul 22, 2018

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.

@FRidh
Copy link
Member

FRidh commented Jul 22, 2018

@GrahamcOfBorg eval

@@ -1,5 +1,6 @@
{ stdenv, lib, buildPackages
, autoreconfHook, texinfo, fetchurl, perl, xz, libiconv, gmp ? null
, openssl ? null
Copy link
Member

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.

@edolstra
Copy link
Member

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.
@viric
Copy link
Member Author

viric commented Jul 28, 2018

Ok. I'll merge it when these automatic tests finish.

@viric viric merged commit df9f76c into NixOS:master Jul 28, 2018
@Mic92
Copy link
Member

Mic92 commented Jul 28, 2018

Why was this merged to master instead of staging?

@dtzWill
Copy link
Member

dtzWill commented Jul 29, 2018

Reverted in 0eb1316 since this broke stdenv and as a result, everything. FYI.

dtzWill added a commit that referenced this pull request Jul 29, 2018
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.
@viric
Copy link
Member Author

viric commented Jul 30, 2018

@dtzWill @Mic92 my fault - I didn't think about staging and noone complained on the ->master PR so then I went on.

Why did you say that "openssl is not allowed in stdenv"?

@Mic92
Copy link
Member

Mic92 commented Jul 30, 2018

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.

@LnL7
Copy link
Member

LnL7 commented Jul 30, 2018

@viric
Copy link
Member Author

viric commented Jul 31, 2018

would a stdenv.isLinux be enough? I don't know what's that Darwin condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants