Files
cpython/Lib
Victor Stinner 2bf8993db9 Optimize bytes.fromhex() and bytearray.fromhex()
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
2015-10-14 11:25:33 +02:00
..
2015-07-29 14:35:12 +02:00
2015-09-06 21:44:45 +03:00
2015-10-07 11:13:55 +00:00
2015-10-13 22:09:34 -04:00
2015-07-05 11:45:31 -07:00
2015-07-23 15:02:25 +03:00
2015-04-13 14:21:02 -04:00
2015-10-06 18:52:52 +03:00
2015-08-23 11:28:01 -07:00
2015-03-05 15:45:01 +13:00
2015-09-18 14:50:18 +02:00
2015-04-13 14:21:02 -04:00
2015-04-14 10:35:43 -04:00
2015-04-13 20:25:11 -04:00
2015-09-05 19:17:24 -04:00
2015-09-22 17:35:42 -07:00
2015-10-06 18:52:52 +03:00
2015-03-18 17:27:57 -07:00
2015-10-01 11:27:57 +01:00
2015-03-18 18:19:30 -07:00
2015-03-18 17:27:57 -07:00
2015-09-29 10:30:47 -04:00
2015-04-03 18:13:23 +03:00
2015-10-10 19:36:40 -07:00
2015-10-06 18:52:52 +03:00
2015-04-13 14:21:02 -04:00
2015-09-04 12:15:54 -07:00