workflo / shaback

A hash digest based backup tool
GNU General Public License v3.0
4 stars 0 forks source link

Make sha1 cache more efficient #18

Open workflo opened 8 years ago

workflo commented 8 years ago

To save RAM we shouldn't cache SHA1 digests as std::string but rather byte[20]. Use unsorted_set instead of set and implement a hash function: http://www.cplusplus.com/reference/unordered_set/unordered_set/

workflo commented 7 years ago

See 4051c7891fa063f99a05cd8224e27e1c69b1cd58

workflo commented 7 years ago

https://codeyarns.com/2012/06/26/c-using-unordered_set/