Reputation
5,044
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
6 23 49
Impact
~449k people reached

Oct
24
comment Simultaneously calculate multiple digests (md5, sha256)?
C or C++ will probably not matter that much as much of the runtime is spent in the OpenSSL module anyway (used by hashlib). More threads does improve speed, see this post about a multi-threaded Python script.
Oct
24
comment Simultaneously calculate multiple digests (md5, sha256)?
pee has the best interface, a time comparison with other tools can be found in this post which also demonstrates a multi-threaded Python tool.
Oct
24
answered Simultaneously calculate multiple digests (md5, sha256)?
Oct
24
awarded  Nice Question
Oct
24
comment Simultaneously calculate multiple digests (md5, sha256)?
While this does output the correct checksums, this Java program calculates twice as slow as coreutils. See this commit message.
Oct
23
comment Simultaneously calculate multiple digests (md5, sha256)?
Nice command! I already have this very useful package installed, didn't know of this funny-named utility.
Oct
23
comment Simultaneously calculate multiple digests (md5, sha256)?
To make the output compatible with the *sum family of tools, this sed expression could be used instead: sed "s;-\$;${file//;/\\;}; (replaced the trailing - by the filename, but ensure that the filename gets properly escaped).
Oct
23
revised Simultaneously calculate multiple digests (md5, sha256)?
Python 3 support, slightly more useful main parameter passing
Oct
23
comment Simultaneously calculate multiple digests (md5, sha256)?
For a file of 2.3G, this version was has a comparable speed compared to md5sum and sha256sum combined (4.7s+14.2s vs 18.7s for this Python script, file in cache; 33.6s for the cold run). 64KiB vs 1MiB did not change the situation. With code commented, 5.1s was spent on md5 (n=3), 14.6s on sha1 (n=3). Tested on an i5-460M with 8GB RAM. I guess that this could further be improved by using more threads.
Oct
23
comment Simultaneously calculate multiple digests (md5, sha256)?
See the comment to Marco, my worry is that although the command will be parallel, the slow disk gets accessed twice for the same data.
Oct
23
comment Simultaneously calculate multiple digests (md5, sha256)?
@Marco The problem with that approach is that one command may be faster than the other, resulting in a disk cache that gets emptied and refilled later with the same data.
Oct
23
asked Simultaneously calculate multiple digests (md5, sha256)?
Oct
22
answered Why isn't Firefox 33 use GCM on our webserver?
Oct
21
awarded  Popular Question
Oct
19
comment WMI-based hotkeys on not working
@MartinVegter Since it worked with Ubuntu 12.04, can you verify from a Ubuntu 12.04 Live USB/CD whether it still works in there? If so, could you repeat this with 14.04? If it is not working anymore, then a regression slipped in somewhere.
Oct
3
comment How do I open an incognito bash session?
unset HISTFILE has a similar effect. I have a function for this: n() { HISTFILE=; PS1="~${PS1#\~}"; }. That way I can clearly see whether I am in "incognito mode" or not.
Sep
30
awarded  Explainer
Sep
30
awarded  Popular Question
Sep
6
revised Why is there Apple copyright on lpadmin, lpq and lpstat pages?
fixed spelling
Sep
4
revised Can I “export” functions in bash?
missing 'user@host'