Sadaf Alvi wrote:

i saw util_ldap_cache to know from which pool it is allocating cache
memory. i wonder to know that it is using util_ldap_cache_mgr which in
turn using calloc & free internally.
why it is not using pconf pool  to allocate cache memory?? is there
any memory or performance issue ??

This has come up on this list before.

The memory pools allow you to allocate memory, but not free memory - you can only free an entire pool. This could cause problems for a cache which grows in size, you cannot free entries without freeing an entire block of entries.

It's on my list of things to look at as to whether using pools might make things more robust, but using pools is definitely not as simple to apply as using calloc/free, which works for now.

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Reply via email to