[OpenSER-Devel] pkg_malloc and pkg_free
Henning Westerholt
henning.westerholt at 1und1.de
Tue Dec 11 10:48:08 UTC 2007
On Monday 10 December 2007, Daniel Corbe wrote:
> Also,
> What's the point in having packaged based implementations of malloc() and
> free() if they don't do anything more than the stock versions of each
> function?
Speed.
PKG_MEM is allocated on server startup, and then used. This avoids the
overhead of malloc and free on runtime, which can be probably costly,
especially in low memory conditions.
Cheers,
Henning
More information about the Devel
mailing list