4 ms·
Honest question: what are the use cases in Git where hash computation speed is a meaningful optimization?
by _verandaguy 7y ago
Honest question: what are the use cases in Git where hash computation speed is a meaningful optimization?
- papreclip 7y agoless wasted computation means less global warming
- strenholme 7y agoIt’s actually not a big deal with Git, which is why SHA2-256 is the right choice.
- SQLite 7y agoMy experience in developing and maintaining Fossil is that the hashing speed is not a factor, unless you are checking in huge JPEGs or MP3s or something. And even then, the relative performance of the various hash algorithms is not enough to worry about.
- _verandaguy 7y agoThanks for the insight. My intuition was kind of the same, but on modern hardware computing the digest-style (as opposed to cryptographic, slow-by-design) hash is essentially imperceptible for payloads in the low MBs -- and much above that is a use case for LFS.
- loeg 7y agoRewriting all repos from SHA1 to hash-next?