Message252979
Attached patch optimizes bytes.fromhex() and bytearray.fromhex():
* Fast-path working on a char* string for ASCII string
* 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
* Check the error position in error messages |
|
Date |
User |
Action |
Args |
2015-10-14 09:09:20 | vstinner | set | recipients:
+ vstinner |
2015-10-14 09:09:20 | vstinner | set | messageid: <1444813760.4.0.225046078014.issue25401@psf.upfronthosting.co.za> |
2015-10-14 09:09:20 | vstinner | link | issue25401 messages |
2015-10-14 09:09:20 | vstinner | create | |
|