text_combined: gregory p smith amuhkryptoorg trunk r61823 compiles binascii use zlibs crc32 rather zlib library available compile time shave kilobyte binasciiso systems binasciizlibcrc32 zlibadler32 binasciicrc_hqx could potentially live hashlib module apis notably different return number rather string leaving serialization byte order user functions allow passing start value rather objects maintain internal state retrieved done adding data itd easy enough wrap api python thatd destroy speed benefit hashlib documentation docstring mention people look zlib want crc32 adler32 imho thats enough even zlib binascii weird place overly logical sense theyre really class hash function g thu mar 20 2008 1202 guido van rossum wrote hm zlib odd place find api unless know way gzip healthy though binascii isnt much better id rather expect vicinity md5 sha possible tweak c code use zlib version present old c code otherwise tue mar 18 2008 321 pm gregory p smith wrote modules crc32 function zlib version faster zlib compiled optimally zlib old uses c code ditch binasciicrc32 version py3k 64bit linux centos 51 python24 timeit fooabcdefghijklmnop10 import binascii mod f modcrc32 x xrange100000 ffoo 10 loops best 3 108 msec per loop python24 timeit fooabcdefghijklmnop10 import zlib mod f modcrc32 x xrange100000 ffoo 10 loops best 3 405 msec per loop 32bit macos x 104 python23 usrlibpython23timeitpy fooabcdefghijklmnop10 import binascii mod f modcrc32 x xrange100000 ffoo 10 loops best 3 737e04 usec per loop python23 usrlibpython23timeitpy fooabcdefghijklmnop10 import zlib mod f modcrc32 x xrange100000 ffoo 10 loops best 3 462e04 usec per loop removal binascii would break things platforms embedded systems wanting crc32 dont want include zlib anyone care 2x remove redundancy py3k guess deprecate binasciicrc32 remove 27 gps _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000guido40pythonorg guido van rossum home page httpwwwpythonorgguido wed 06 aug 2008 142846 0700 python3000 binasciicrc32 vs zlibcrc32