[New-bugs-announce] [issue19581] PyUnicodeWriter: change the overallocation factor for Windows

STINNER Victor report at bugs.python.org
Thu Nov 14 10:37:25 CET 2013


New submission from STINNER Victor:

PyUnicodeWriter currently overallocates the internal buffer by 25%. On Windows, PyUnicodeWriter is slower than PyAccu API. With an overallocation factor of 50%, PyUnicodeWriter is fastter.

See this message for the benchmark:
http://bugs.python.org/issue19513#msg202312

We might also change the factor on all platform, performances are almost the same with a factor of 25% or 50% on Linux.

----------
components: Windows
files: writer_overallocate_factor.patch
keywords: patch
messages: 202823
nosy: haypo, pitrou, serhiy.storchaka
priority: normal
severity: normal
status: open
title: PyUnicodeWriter: change the overallocation factor for Windows
type: performance
versions: Python 3.4
Added file: http://bugs.python.org/file32610/writer_overallocate_factor.patch

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


More information about the New-bugs-announce mailing list