cpython/Objects
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
..
clinic Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the 2015-04-24 00:40:51 +03:00
stringlib Optimize error handlers of ASCII and Latin1 encoders when the replacement 2015-10-09 13:10:05 +02:00
README Issue #18093: Factor out the programs that embed the runtime 2014-07-25 21:52:14 +10:00
abstract.c More typos in 3.5 documentation and comments 2015-10-07 11:03:53 +00:00
accu.c Issue #14387: Do not include accu.h from Python.h. 2012-03-22 14:38:16 +01:00
boolobject.c
bytearrayobject.c Optimize bytes.fromhex() and bytearray.fromhex() 2015-10-14 11:25:33 +02:00
bytes_methods.c Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() 2015-02-03 01:25:42 +02:00
bytesobject.c Optimize bytes.fromhex() and bytearray.fromhex() 2015-10-14 11:25:33 +02:00
capsule.c
cellobject.c
classobject.c Removed unintentional trailing spaces in non-external and non-generated C files. 2015-03-18 21:53:15 +02:00
codeobject.c Issue #18874: PyCode_New() now ensures that the filename is a ready Unicode 2013-10-10 15:55:14 +02:00
complexobject.c Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() 2015-02-03 01:25:42 +02:00
descrobject.c Fixed indentation of Python examples in C comments. 2015-06-11 00:07:47 +03:00
dict-common.h Issue #16991: Add a C implementation of collections.OrderedDict. 2015-05-29 22:21:39 -06:00
dictnotes.txt Issue #15055: update dictnotes.txt. Patch by Mark Shannon. 2012-06-24 21:03:45 +02:00
dictobject.c Issue #24483: C implementation of functools.lru_cache() now calculates key's 2015-10-02 12:47:11 +03:00
enumobject.c Issue #14288: Serialization support for builtin iterators. 2012-04-03 10:49:41 +00:00
exceptions.c Issue #19235: Add new RecursionError exception. Patch by Georg Brandl. 2015-07-03 01:04:23 -04:00
fileobject.c (Merge 3.4) Issue #25182: Fix compilation on Windows 2015-09-30 15:03:31 +02:00
floatobject.c Issue 19933: Provide default argument for ndigits in round. Patch by Vajrasky Kok. 2015-04-15 16:10:59 -04:00
frameobject.c PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
funcobject.c Issue #18520: Fix PyFunction_NewWithQualName() error handling 2013-07-22 23:04:55 +02:00
genobject.c Issue #24450: Add gi_yieldfrom to generators; cr_await to coroutines. 2015-07-03 00:23:30 -04:00
iterobject.c Issue #23985: Fixed integer overflow in iterator object. Patch by 2015-05-21 20:51:53 +03:00
listobject.c merge 3.4 (#24044) 2015-04-23 17:06:45 -04:00
listsort.txt Various clarifications based on feedback & questions over the years. 2013-08-24 15:15:19 -05:00
lnotab_notes.txt
longobject.c Fix long_format_binary() 2015-10-14 09:47:23 +02:00
memoryobject.c Issue #15944: memoryview: Allow arbitrary formats when casting to bytes. 2015-08-08 13:38:10 +02:00
methodobject.c More typos in 3.5 documentation and comments 2015-10-07 11:03:53 +00:00
moduleobject.c Issue #24268: Address some PEP 489 refleaks 2015-05-24 01:03:46 +10:00
namespaceobject.c Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). 2015-05-22 11:02:49 +03:00
object.c Merge typo fixes from 3.4 into 3.5 2015-10-07 11:01:47 +00:00
obmalloc.c Issue #23450: Fixed possible integer overflows. 2015-02-16 20:52:17 +02:00
odictobject.c odictobject.c: fix compiler warning 2015-09-18 13:44:11 +02:00
rangeobject.c Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 2015-05-30 17:48:19 +03:00
setobject.c Move the active entry multiplication to later in the hash calculation 2015-08-07 00:43:39 -07:00
sliceobject.c Make Ellipsis and NotImplemented picklable through the reduce protocol. 2013-11-24 02:53:45 -08:00
structseq.c Issue #15989: Fixed some scarcely probable integer overflows. 2015-09-06 21:25:30 +03:00
tupleobject.c Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects. 2015-03-10 22:35:24 +01:00
typeobject.c Issue #24164: Objects that need calling ``__new__`` with keyword arguments, 2015-10-10 22:42:18 +03:00
typeslots.inc add Py_tp_finalize slot (closes #24345) 2015-06-01 10:12:48 -05:00
typeslots.py PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
unicodectype.c Removed unintentional trailing spaces in non-external and non-generated C files. 2015-03-18 21:53:15 +02:00
unicodeobject.c Issue #25353: Optimize unicode escape and raw unicode escape encoders to use 2015-10-12 22:36:57 +02:00
unicodetype_db.h upgrade to Unicode 8.0.0 2015-06-27 15:45:56 -05:00
weakrefobject.c Issue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case of 2015-03-30 09:52:29 +03:00

README

Source files for various builtin objects