Message415865
If put a bytes object into multiple dicts/sets, the hash need to be computed multiple times. This seems a common usage.
bytes is a very basic type, users may use it in various ways. And unskilled users may checking the same bytes object against dicts/sets many times.
FYI, 1 GiB data:
function seconds
hash() 0.40
binascii.crc32() 1.66 (Gregory P. Smith is trying to improve this)
zlib.crc32() 0.65 |
|
Date |
User |
Action |
Args |
2022-03-23 11:50:49 | malin | set | recipients:
+ malin, christian.heimes, methane, serhiy.storchaka, brandtbucher |
2022-03-23 11:50:49 | malin | set | messageid: <1648036249.31.0.314232962979.issue46864@roundup.psfhosted.org> |
2022-03-23 11:50:49 | malin | link | issue46864 messages |
2022-03-23 11:50:49 | malin | create | |
|