A safer File.readln
Markus Laker via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jan 23 03:55:59 PST 2017
On Monday, 23 January 2017 at 11:30:35 UTC, Shachar Shemesh wrote:
> It is possible to tweak the numbers based on the overall use.
> For example, add 100% for arrays smaller than 1MB, 50% for 1MB
> - 100MB, and 20% for arrays above 100MB big. This would
> eliminate the performance degradation for almost all users.
I'm going to bow out of the discussion about array-expansion,
because I think it's a separate topic from readln and I don't
know enough about D's internals to contribute meaningfully. It
might be worth raising your proposal in a separate thread in
order to ensure visibility.
Cheers,
Markus
More information about the Digitalmars-d
mailing list