[squid-dev] [PATCH] implement std::hash<SBuf>

Kinkie gkinkie at gmail.com
Mon Jul 27 17:44:16 UTC 2015


Hi,
   the attached patch makes it possible to have a default hasher
implementation for SBuf, thus enabling baseline std::unordered_map<SBuf,*>
support.
Different, more specialized, hash functions can be of course implemented
via template arguments to std::unordered_map of course.
The implementation is a reworked hash_string, so it shouldn't be any less
effective than that for our workloads.



-- 
    Francesco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150727/0683b020/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbuf-hash-v1.patch
Type: text/x-diff
Size: 6396 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150727/0683b020/attachment.patch>


More information about the squid-dev mailing list