toString refactor in druntime
via Digitalmars-d
digitalmars-d at puremagic.com
Mon Nov 3 12:55:01 PST 2014
On Monday, 3 November 2014 at 15:42:57 UTC, Steven Schveighoffer
wrote:
> At the moment, you are stuck with most toString calls
> allocating on the GC every time they are called. I think the
> virtual call thing should be a pleasant improvement :)
Note that delegates aren't virtual calls, but indirect calls. The
former need 2 memory access, the latter none (or 3 vs. 1 if the
delegate/object isn't yet in a register).
More information about the Digitalmars-d
mailing list