This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbt
Recipients pitrou, sbt
Date 2012-08-22.09:41:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345628492.31.0.463995389148.issue15758@psf.upfronthosting.co.za>
In-reply-to
Content
In each loop before calling read() the buffer size is recalculated based on the amount of space used, causing a realloc *regardless* of how much empty space is left in the buffer.  And each read is only producing a smallish chunk (5120 bytes).

So assuming realloc fails to do an inplace realloc (and Windows is reputedly very bad at that) the amount of data copied will be O(n^2).
History
Date User Action Args
2012-08-22 09:41:32sbtsetrecipients: + sbt, pitrou
2012-08-22 09:41:32sbtsetmessageid: <1345628492.31.0.463995389148.issue15758@psf.upfronthosting.co.za>
2012-08-22 09:41:31sbtlinkissue15758 messages
2012-08-22 09:41:31sbtcreate