Why is stdin.byLine.writeln so slow?
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 13 15:12:01 PDT 2014
On 06/13/2014 03:02 PM, monarch_dodra wrote:
> No, it just receives a range, so it does range formating. eg:
> "[" ~ Element ~ ", " ~ Element ... "]".
It still looks like it could send the formatting characters as well as
the elements separately to the output stream:
"["
Element
", "
...
"]"
I am assuming that the slowness in OP's example is due to constructing a
long string.
Ali
More information about the Digitalmars-d-learn
mailing list