[issue17694] Enhance _PyUnicodeWriter API to control minimum buffer length without overallocation

2013-04-13 Thread Vladimir Korolev
Vladimir Korolev added the comment: For some reason can't figure out how to attach multiple files. So here is the benchmark module -- Added file: http://bugs.python.org/file29833/benchmark.py ___ Python tracker <http://bugs.python.org/is

[issue17694] Enhance _PyUnicodeWriter API to control minimum buffer length without overallocation

2013-04-13 Thread Vladimir Korolev
Vladimir Korolev added the comment: We have this issue triaged for at CPython hackathon in Boston. Here is a patch for the issue. We only tested on Mac OS X 10.8.3, which has zoned allocator, so the memory profile is exactly the same with our without this patch. The running time seems

[issue17694] Enhance _PyUnicodeWriter API to control minimum buffer length without overallocation

2013-04-13 Thread Vladimir Korolev
Vladimir Korolev added the comment: I'd like to note that the actual patch was written by Adam.Duston http://bugs.python.org/user17706 I just verified the results, measured the time/memory performance submitted the patch. -- ___ Python tr