On Windows reading the first line with linein has a runtime that goes up with the square of the line length, e. g.
10mb 3.7 s
100mb 337.6 s
Our variable line read code extends the read buffer by a small fixed amount each time more space is required which a seemingly inefficient realloc doesn't handle well.
Doubling the read buffer size when more space is needed should fix this (gaining orders of magnitudes for e. g. a one GB linein).
This seems to be a lesser issue on Linux, but the proposed fix will still provide some speed-up.
Anonymous
Committed code fix with revision [r12511].
Related
Commit: [r12511]
On Fri, May 12, 2023 at 2:56 PM Per Olov Jonsson perolovjonsson@users.sourceforge.net wrote:
In general, the Group is usually left as "none" until there is a fix
available and it decided when it will be available.
Related
Bugs:
#1842Point taken
Hälsningar/Regards/Grüsse,
P.O. Jonsson
oorexx@jonases.se
Related
Bugs:
#1842Committed code fix with revision [r12511].
Related
Commit: [r12511]