On 5/30/16 12:22 AM, Jack Stouffer wrote:
On Sunday, 29 May 2016 at 17:36:24 UTC, Steven Schveighoffer wrote:
Wholly disagree. If we didn't cache the element, D would be a
laughingstock of performance-minded tests.
byLine already is a laughingstock performance wise:
https://issues.dlang.org/show_bug.cgi?id=11810
But that's because we base our I/O on C :)
My iopipe library is 2x as fast.
It's way faster to read the entire file into a buffer and iterate by
line over that.
Depends on how big the entire file is.
I have to agree with Jonathan, I see a lot of proposals in this thread
but I have yet to see a cost/benefit analysis that's pro transient
support. The amount of changes needed to support them is not
commensurate to any possible benefits.
Transient ranges are already supported. Removing the ability to have
transient ranges would be an unmitigated disaster. e.g. removing range
support for byLine.
-Steve