Low-overhead components
Vladimir Panteleev
vladimir at thecybershadow.net
Sun Jul 28 14:03:41 PDT 2013
On Sunday, 28 July 2013 at 12:31:46 UTC, Kagamin wrote:
> For a hashtable to know about its container is probably more
> wasteful than having a pointer to the allocator.
Why? The difference is one indirection. Are you referring to the
impact of template bloat and code cache misses?
> If you don't like deep nesting, write a shortcut function,
> which will do the entire job for you similar to the read
> function:
> http://dlang.org/phobos/std_file.html#.read
Yes, but you still need to write it. With mixins, each layer is
declared separately, and you can access it directly.
More information about the Digitalmars-d
mailing list