• Victor Stinner's avatar
    Optimize bytes.fromhex() and bytearray.fromhex() · 2bf8993d
    Victor Stinner yazdı
    Issue #25401: Optimize bytes.fromhex() and bytearray.fromhex(): they are now
    between 2x and 3.5x faster. Changes:
    
    * Use a fast-path working on a char* string for ASCII string
    * Use a slow-path for non-ASCII string
    * Replace slow hex_digit_to_int() function with a O(1) lookup in
      _PyLong_DigitValue precomputed table
    * Use _PyBytesWriter API to handle the buffer
    * Add unit tests to check the error position in error messages
    2bf8993d
Adı
Son kayıt (commit)
Son güncelleme
..
c-api Loading commit data...
data Loading commit data...
distributing Loading commit data...
distutils Loading commit data...
extending Loading commit data...
faq Loading commit data...
howto Loading commit data...
includes Loading commit data...
install Loading commit data...
installing Loading commit data...
library Loading commit data...
reference Loading commit data...
tools Loading commit data...
tutorial Loading commit data...
using Loading commit data...
whatsnew Loading commit data...
Makefile Loading commit data...
README.txt Loading commit data...
about.rst Loading commit data...
bugs.rst Loading commit data...
conf.py Loading commit data...
contents.rst Loading commit data...
copyright.rst Loading commit data...
glossary.rst Loading commit data...
license.rst Loading commit data...
make.bat Loading commit data...