cpython/Objects
Victor Stinner fa7762ec06 Issue #25349: Optimize bytes % args using the new private _PyBytesWriter API
* Thanks to the _PyBytesWriter API, output smaller than 512 bytes are allocated
  on the stack and so avoid calling _PyBytes_Resize(). Because of that, change
  the default buffer size to fmtcnt instead of fmtcnt+100.
* Rely on _PyBytesWriter algorithm to overallocate the buffer instead of using
  a custom code. For example, _PyBytesWriter uses a different overallocation
  factor (25% or 50%) depending on the platform to get best performances.
* Disable overallocation for the last write.
* Replace C loops to fill characters with memset()
* Add also many comments to _PyBytes_Format()
* Remove unused FORMATBUFLEN constant
* Avoid the creation of a temporary bytes object when formatting a floating
  point number (when no custom formatting option is used)
* Fix also reference leaks on error handling
* Use Py_MEMCPY() to copy bytes between two formatters (%)
2015-10-09 11:48:06 +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 backslashreplace error handler 2015-10-09 01:39:28 +02:00
abstract.c More typos in 3.5 documentation and comments 2015-10-07 11:03:53 +00:00
accu.c
boolobject.c
bytearrayobject.c Issue #23573: Restored optimization of bytes.rfind() and bytearray.rfind() 2015-07-20 22:58:02 +03:00
bytes_methods.c Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() 2015-02-03 01:25:42 +02:00
bytesobject.c Issue #25349: Optimize bytes % args using the new private _PyBytesWriter API 2015-10-09 11:48:06 +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
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
dictobject.c Issue #24483: C implementation of functools.lru_cache() now calculates key's 2015-10-02 12:47:11 +03:00
enumobject.c
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
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
lnotab_notes.txt
longobject.c Issue #24999: In longobject.c, use two shifts instead of ">> 2*PyLong_SHIFT" to 2015-09-19 13:39:03 +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
README Issue #18093: Factor out the programs that embed the runtime 2014-07-25 21:52:14 +10:00
setobject.c Move the active entry multiplication to later in the hash calculation 2015-08-07 00:43:39 -07:00
sliceobject.c
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 Merge typo fixes from 3.5 2015-10-07 11:13:55 +00: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 #25318: Fix backslashreplace() 2015-10-09 03:37:11 +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

Source files for various builtin objects