Interesting Memory Optimization

Kevin Cox kevincox.ca at gmail.com
Sun Mar 18 14:39:41 PDT 2012


On Mar 18, 2012 4:50 PM, "Peter Alexander" <peter.alexander.au at gmail.com>
wrote:

> Neither do I, but it's more work for the compiler, and even if the
compiler does string pooling, it may not look for common suffixes.

It would be more work but it would have memory and cache benefits.  If you
stored created a set of strings ordered lexographicaly by their reverse it
would not be that much overhead.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120318/d7071342/attachment.html>


More information about the Digitalmars-d mailing list