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 <rep...@bugs.python.org> <http://bugs.python.org/issue19581> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com