This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author malin
Recipients brandtbucher, christian.heimes, malin, methane, serhiy.storchaka
Date 2022-03-23.11:50:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:49malinsetrecipients: + malin, christian.heimes, methane, serhiy.storchaka, brandtbucher
2022-03-23 11:50:49malinsetmessageid: <>
2022-03-23 11:50:49malinlinkissue46864 messages
2022-03-23 11:50:49malincreate