On Thu, Jan 29, 2004 at 01:38:09PM +0100, Pieter Grimmerink wrote:
> All this would cause constant allocating and freeing of memory.
> Doesn't this cause heap fragmentation very quickly?
> Or am I just being paranoid?

I guess you know your device better than I.  But with a modern
well-designed memory allocator, memory fragmentation is almost never
an issue in practice (overhead of a few percent, IIRC), and in this
case in particular, it sounds like you're talking about
allocating/deallocating the same size block over and over, which
shouldn't cause memory fragmentation at all...

I think I'd check for this empirically before getting too worried.
(It's not that hard; you just wrap malloc/free to keep a counter of
what you think is supposed to be allocated, then compare to what the
OS thinks is allocated.)

-- Nathaniel

-- 
I have my moments.  And soon, I will have yours, too.


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to