why my tail implementation is much more slower than coreutil ?

Marco Leise Marco.Leise at gmx.de
Sun Nov 4 21:35:44 PST 2012


tail from coreutils was compiled using the GCC. Use the same
compiler backend (GDC). Any difference that still remains is
from runtime initialization/termination, the overhead of using
a wrapper class around the C routines (for the memory mapping
or printing to terminal) and possibly a faster scan routine for
line endings in the Linux tool. Implementations using SSE to
scan for \n in a block of 16 bytes are possible.

-- 
Marco



More information about the Digitalmars-d-learn mailing list