[New-bugs-announce] [issue4561] Optimize new io library

Christian Heimes report at bugs.python.org
Sat Dec 6 13:14:51 CET 2008

New submission from Christian Heimes <lists at cheimes.de>:

The new io library needs some serious profiling and optimization work.
I've already fixed a severe slowdown in _fileio.FileIO's read buffer
allocation algorithm (#4533).

More profiling tests have shown a speed problem in write() files opened
in text mode. For example three str.count() calls are taking up 20% of
the time. The str.count calls can be replaced with an optimized C
function that returns the count of (\r\n, \n, \r) in one pass instead of
three passes.

components: Extension Modules, Library (Lib)
messages: 77116
nosy: christian.heimes
priority: high
severity: normal
stage: test needed
status: open
title: Optimize new io library
type: performance
versions: Python 3.0, Python 3.1

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list