D and a bazillion of small objects

bearophile bearophileHUGS at lycos.com
Thu Jun 3 10:27:20 PDT 2010

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:

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).


More information about the Digitalmars-d-learn mailing list