D and a bazillion of small objects
    Yao G. 
    nospamyao at gmail.com
       
    Thu Jun  3 10:51:00 PDT 2010
    
    
  
Thanks bearophile. I'll give it a try later.
--
Yao.G
On Thu, 03 Jun 2010 12:27:20 -0500, bearophile <bearophileHUGS at lycos.com>  
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
    
    
More information about the Digitalmars-d-learn
mailing list