Thanks bearophile. I'll give it a try later.
--
Yao.G
On Thu, 03 Jun 2010 12:27:20 -0500, bearophile <[email protected]>
wrote:
Yao G.:
I think the idea of a memory pool or freelist is good. Can you point me
where can I see your libs?
Instead of just giving you a link to the dlibs1, I've extracted the
relevant code and adapted it to D2:
http://codepad.org/Ug5Z5qum
I have tested it enough with D1 but only a bit with D2, so be careful.
This code can be improved in numerous ways :-) Something similar can be
useful in Phobos2 too, I think Tango has something similar (but probably
better).
Bye,
bearophile