Re: memory allocations.



Havoc Pennington <hp redhat com> writes:

> We could pool them by just forcing them all to the same length, maybe,
> though the length is in principle arbitrary.

Whatever the way will be, this code is executed at startup time.
There will be no second thread handling this code so you don't have to
lock at all.

For this specific problem (many small allocations which never will be
freed) obstacks are ideal.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]