[issue4533] 3.0 file.read dreadfully slow

2009-07-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: This has been fixed as part of the big IO update in trunk. I assume nobody really cares about making a separate patch for 2.6, please re-open if you are interested! -- resolution: accepted -> fixed status: open -> closed ___

[issue4533] 3.0 file.read dreadfully slow

2008-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since it is solved for 3.x and only needs to be bacported to 2.x (where the "io" module isn't the default), downgrading to critical. -- nosy: +pitrou priority: release blocker -> critical ___ Python tracker

[issue4533] 3.0 file.read dreadfully slow

2008-12-19 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4533] 3.0 file.read dreadfully slow

2008-12-10 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- priority: release blocker -> deferred blocker ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4533] 3.0 file.read dreadfully slow

2008-12-05 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: The updated patch has been committed to 3.0 and 3.1. I'm going to backport the patch to 2.x later. -- resolution: -> accepted stage: patch review -> commit review versions: +Python 2.6, Python 2.7 -Python 3.0, Python 3.1 _

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: fileio_buffer2.patch looks good other than minor touchups: Turn the XXX comment into: /* NOTE: overflow impossible due to limits on BUFSIZ * Also, 2 << 24 is 32MB yet your error message test says >= 64MB. I think you meant 1 << 26. fix

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: The preprocessor doesn't handle power. 2 << 24 (64MB) sounds sufficient for me. Added file: http://bugs.python.org/file12228/fileio_buffer2.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: patch looks good to me. nitpick comments: use += instead of = and + in: newsize = newsize + newsize and newsize = newsize + BIGCHUNK. As for the XXX about overflow, so long as BUFSIZ is not defined to be an insanely large number (it shou

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: The fileio_buffer.patch implements the same progressive buffer as Python 2.x' Object/fileobject.c. -- keywords: +patch stage: test needed -> patch review Added file: http://bugs.python.org/file12227/fileio_buffer.patch

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: The small buffer size in Modules/_fileio.c is one reason for the slowness. $ dd if=/dev/zero of=zeros bs=1MB count=50 $ cat testread.py open("zeros", "rb").read() $ ./python -m cProfile testread.py 40 function calls (39 primitive c

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: This needs definitely some testing! -- components: +Extension Modules nosy: +christian.heimes priority: -> release blocker stage: -> test needed versions: +Python 3.1 ___ Python tracker <[EMAIL

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: C.l.p poster reported that 3.0 file.read is orders of magnitude slower than with 2.5 (but confused issue with buffer = 0). Jerry Hill reported "Here's a quick comparison between 2.5 and 3.0 on a relatively small 17 meg file: C:\>c:\Python