Open workflo opened 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/
unsorted_set
set
See 4051c7891fa063f99a05cd8224e27e1c69b1cd58
https://codeyarns.com/2012/06/26/c-using-unordered_set/
To save RAM we shouldn't cache SHA1 digests as std::string but rather byte[20]. Use
unsorted_set
instead ofset
and implement a hash function: http://www.cplusplus.com/reference/unordered_set/unordered_set/