Author vstinner
Recipients vstinner
Date 2015-10-14.09:09:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444813760.4.0.225046078014.issue25401@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-10-14 09:09:20vstinnersetrecipients: + vstinner
2015-10-14 09:09:20vstinnersetmessageid: <1444813760.4.0.225046078014.issue25401@psf.upfronthosting.co.za>
2015-10-14 09:09:20vstinnerlinkissue25401 messages
2015-10-14 09:09:20vstinnercreate