Message168862
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). |
|
Date |
User |
Action |
Args |
2012-08-22 09:41:32 | sbt | set | recipients:
+ sbt, pitrou |
2012-08-22 09:41:32 | sbt | set | messageid: <1345628492.31.0.463995389148.issue15758@psf.upfronthosting.co.za> |
2012-08-22 09:41:31 | sbt | link | issue15758 messages |
2012-08-22 09:41:31 | sbt | create | |
|