[issue21377] PyBytes_Concat could try to concat in-place

Antoine Pitrou report at bugs.python.org
Mon Apr 28 21:47:24 CEST 2014


New submission from Antoine Pitrou:

Currently, PyBytes_Concat always creates a new bytes object for the result. However, when Py_REFCNT(*pv) == 1, it could instead call _PyBytes_Resize() and then concat the second argument in place.

(like e.g. _PyUnicode_Append does)

----------
components: Interpreter Core
messages: 217406
nosy: haypo, nikratio, pitrou
priority: normal
severity: normal
status: open
title: PyBytes_Concat could try to concat in-place
type: performance
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21377>
_______________________________________


More information about the Python-bugs-list mailing list