template statistics
Walter Bright
newshound2 at digitalmars.com
Fri Jun 5 22:25:56 UTC 2020
On 6/5/2020 1:41 PM, Adam D. Ruppe wrote:
> But those decisions are all made for debatably good reasons
> and at the end of the day, is it worth worrying about 0.04s and 200 bytes on a
> hello world build?
writeln() is a fundamental piece of Phobos, and should be done right.
Back in the olden days, Borland's C compiler didn't produce very good code. But
Borland managed to still get good results by doing the basics right - they went
all out on hand-optimizing the C standard library.
In particular, they implemented printf entirely in hand-optimized assembler.
Since printf is used everywhere in C code, this paid of handsomely for Borland.
AFAIK, they're the only C vendor that did this.
More information about the Digitalmars-d
mailing list