On 20/07/2006, at 10:01 AM, Carlo Sogono wrote:

* Recode my application to do less but larger mallocs (few MBs each?). I have several versions of my malloc application in place, linked list, trees, etc. Ideally I would like to use binary trees inside a hash table for easy lookups.

One more suggestion: if you're doing a lot of very small mallocs, looking into an alternative memory allocator may be worthwhile. This is a large design space with a lot of approaches and a lot of implementations. Doug Lea's malloc library might be a good start, and it'd also be worthwhile seeing if you can tune glibc's standard malloc allocator to your needs. There are also a lot of specialised small-object allocators for C++ that you should be able to port to C without much difficulty.


--
% Andre Pang : trust.in.love.to.save  <http://www.algorithm.com.au/>



_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders

Reply via email to