[Issue 11810] std.stdio.byLine/readln performance is very bad

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 24 05:27:16 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11810



--- Comment #2 from Peter Alexander <peter.alexander.au at gmail.com> 2013-12-24 05:27:14 PST ---
(In reply to comment #1)
> It has been discussed on IRC hundreds of times and we all agreed that if
> developer wants performance (s)he would read page-size chunks. That is why we
> have byChunk(size_t) in std.stdio, I believe. :)

OK, but:

1. It's non-trivial to implement byLine on top of byChunk.

2. Why would you want byLine to be slow? I'm not seeing the advantage of
keeping byLine as it is. Fixing it doesn't change the API and has no downsides
other than requiring a bit extra memory for the buffer.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list