January 15, 2007 Re: top 8 entry from grpof of my app :-( | ||||
---|---|---|---|---|
| ||||
Posted in reply to janderson | Thank you for the suggestions.
> You might also try nedmalloc.
I checked it, it's a C library. How does it work with D? e.g. how to allocate D class (not struct) array? Any experience with it?
|
January 16, 2007 Re: top 8 entry from grpof of my app :-( | ||||
---|---|---|---|---|
| ||||
Posted in reply to %u | %u wrote: > Thank you for the suggestions. > >> You might also try nedmalloc. > > I checked it, it's a C library. How does it work with D? e.g. how to allocate D > class (not struct) array? Any experience with it? > http://www.digitalmars.com/d/memory.html#newdelete Basically, you just declare the function from the C lib, for example: extern(C) void* nedmalloc(size_t);//just a guess And you can use it. Must still link to the lib though :) L. |
Copyright © 1999-2021 by the D Language Foundation