[New-bugs-announce] [issue32147] improve performance of binascii.unhexlify() by using conversion table

Sergey Fedoseev report at bugs.python.org
Mon Nov 27 07:14:29 EST 2017


New submission from Sergey Fedoseev <fedoseev.sergey at gmail.com>:

Before:

$ ./python -m timeit -s "from binascii import unhexlify; b = b'aa'*2**20" "unhexlify(b)"
50 loops, best of 5: 5.68 msec per loop

After:

$ ./python -m timeit -s "from binascii import unhexlify; b = b'aa'*2**20" "unhexlify(b)"
100 loops, best of 5: 2.06 msec per loop

----------
messages: 307053
nosy: sir-sigurd
priority: normal
severity: normal
status: open
title: improve performance of binascii.unhexlify() by using conversion table
type: performance

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32147>
_______________________________________


More information about the New-bugs-announce mailing list