4 ms·
I do like your hashname/nohash idea. If we could come up with a simple compression negotiation protocol also: zlib -> zstd. But this will be much harder, as has
by rurban 10y ago
I do like your hashname/nohash idea.
If we could come up with a simple compression negotiation protocol also: zlib -> zstd. But this will be much harder, as hashes are internal only, and compression is in the protocol.
kudos to brian m carlson to convince linus to use sha3-256 over sha256. this is really the only sane option we have.
- lisper 10y ago> this is really the only sane option we have Why?
- wolf550e 10y agoYeah, I would have gone with BLAKE2. It's much faster than SHA-256 and SHA3-256: https://blake2.net/skylake.png https://blake2.net/skylake.png
- benchaney 10y agoThis is a perfect example of a situation where hashing performance doesn't matter at all.
- harshreality 10y agoThe hash function may not matter for overall git performance in virtually all dev machine setups, but there will be a (maybe tiny, maybe larger, depending on the repo and disk io speed) difference in cpu utilization and heat generation, right?
- copperx 10y agoThat's a silly thing to worry about when you're developing Ruby or Java applications. My PC boots faster than the Rails console or IntelliJ.
- dakull 10y agoJRuby?
- harshreality 10y agoThe broader point is this: code repositories are not the only things git is used for.
- tikhonj 10y agoI'm not familiar with Git internals. Does the performance of the hashing algorithm contribute significantly to how Git deals with large files or with operations over a large number of small files? I've run into performance problems with things like MathJaX, which includes thousands (or tens of thousands?) of files as a backup method for rendering equations. (I understand each file has a single character in some typeface.)
- harshreality 10y agosha3 will probably get hw accel eventually. Blake2 is less likely to. It's like the dilemma between chacha20 and a stream cipher mode for aes. An argument could be made for either, depending on application specifics and available hardware.
- wolf550e 10y agoBut like its ancestor chacha, blake2 is fast on anything that has SIMD.
- weinzierl 10y agoI don't understand what you mean by "hashes are internal only"? Aren't the sha1's everywhere right now. I mean not only in the protocol but also part of the UI and from there they even spread into bug trackers, documentation and so forth.