[Issue 14256] Poor IO performance on 64-bit dmd 2.066 (OS X)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jun 27 22:21:28 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=14256
Jon Degenhardt <jrdemail2000-dlang at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jrdemail2000-dlang at yahoo.co
| |m
--- Comment #14 from Jon Degenhardt <jrdemail2000-dlang at yahoo.com> ---
I've benchmarked File.byLine on OS X and Linux and they are quite fast on these
platforms. I have not tested Windows, but have seen reports indicating it is
quite slow there. I know also that performance on OS X poor prior to 2.068,
when it was dramatically improved.
The improvement in 2.068 was via PR #3089
(https://github.com/dlang/phobos/pull/3089). This changed File.byLine to use
getdelim() on platforms supporting it, including OS X and most Linux versions.
It's not clear if a similar change was made for Windows.
This can be seen in part in the source file
(https://github.com/dlang/phobos/blob/master/std/stdio.d) by searching for
HAS_GETDELIM and NO_GETDELIM. Most platforms are listed as one or the other,
Windows does not appear to be included and may still use a slow implementation.
--
More information about the Digitalmars-d-bugs
mailing list