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   `------------------------

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