Article: Increasing the D Compiler Speed by Over 75%
Richard Webb
richard.webb at boldonjames.com
Mon Aug 5 06:21:53 PDT 2013
On 02/08/2013 14:16, Dmitry Olshansky wrote:
> Function CPU clocks DC accesses DC misses
> RTLHeap::Alloc 51638 552 3538
> Obj::ledata 9936 1346 3290
> Obj::fltused 7392 2948 6
> cgcs_term 3892 1292 638
> TemplateInstance::semantic 3724 2346 20
> Obj::byte 3280 548 676
> vsprintf 3056 3006 4
Random lunchtime observation:
A lot of the calls to vsprintf are from
TypeStruct::toDecoBuffer/TypeClass::toDecoBuffer/TypeEnum::toDecoBuffer
which all do
OutBuffer->printf("%s", name);
Is that needed, or would changing them to
OutBuffer->writestring(name);
be more efficient?
(it seems like it might, albeit only very slightly).
More information about the Digitalmars-d-announce
mailing list