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-10-12 23:37:31 +02:00
2015-10-11 10:37:25 +02:00
2015-10-06 08:24:44 -07:00
2015-09-18 16:32:51 +02:00
2015-09-20 15:09:15 -04:00
2015-09-06 22:31:26 -07:00
2015-09-27 22:32:15 -04:00
2015-09-05 21:05:05 +10:00
2015-10-09 00:03:51 -04:00
2015-10-10 22:42:18 +03:00
2015-10-11 10:39:56 +02:00
2015-09-25 22:44:43 -07:00
2015-10-11 11:01:02 +02:00
2015-10-10 05:28:17 +00:00
2015-10-14 11:25:33 +02:00
2015-10-09 03:17:30 +02:00
2015-10-09 15:09:43 -07:00
2015-10-10 11:05:47 +00:00
2015-10-11 10:53:15 +02:00
2015-09-19 09:05:42 -07:00
2015-10-11 17:52:09 +03:00
2015-10-01 13:16:43 +02:00
2015-09-17 21:49:12 -07:00
2015-10-09 22:50:36 +02:00
2015-09-23 10:24:43 -04:00
2015-09-22 13:08:16 +03:00
2015-09-15 00:23:08 +02:00
2015-09-06 14:14:49 +03:00
2015-09-06 21:44:45 +03:00
2015-10-03 06:07:22 +00:00
2015-09-05 21:05:05 +10:00
2015-09-12 16:36:15 +00:00
2015-10-06 15:28:56 -05:00
2015-09-26 00:07:29 +00:00
2015-09-04 07:48:19 +03:00
2015-09-07 04:04:40 +00:00
2015-10-01 09:47:30 +02:00
2015-09-05 19:13:26 -04:00
2015-09-06 14:13:25 +03:00
2015-10-10 20:10:54 +03:00
2015-09-09 01:56:53 +00:00
2015-09-09 01:56:53 +00:00
2015-09-06 14:14:49 +03:00
2015-09-06 14:14:49 +03:00
2015-10-12 14:38:24 +02:00
2015-09-07 22:54:08 +03:00
2015-10-11 10:37:25 +02:00
2015-09-27 13:43:50 +03:00
2015-10-08 12:27:06 +03:00
2015-09-08 10:00:22 +03:00
2015-10-09 10:19:33 -04:00
2015-09-21 09:04:17 +02:00
2015-09-29 10:30:04 -04:00
2015-10-06 13:29:56 -04:00
2015-09-28 13:33:43 +03:00
2015-10-13 00:11:21 +02:00
2015-09-06 14:14:49 +03:00
2015-09-06 14:14:49 +03:00
2015-10-12 23:30:15 -05:00
2015-10-07 11:03:53 +00:00
2015-10-06 18:23:12 +03:00
2015-09-29 22:33:36 +03:00
2015-09-04 12:15:54 -07:00
2015-09-06 14:13:25 +03:00
2015-10-02 13:13:14 +03:00
2015-09-29 23:38:34 +03:00
2015-09-29 23:52:42 +03:00
2015-09-03 12:14:25 +02:00
2015-09-23 01:43:08 +00:00
2015-09-19 10:59:48 +03:00
2015-09-09 01:56:53 +00:00