Talloc: pool optimizations

Stefan (metze) Metzmacher metze at samba.org
Thu Mar 31 12:17:38 MDT 2011


using 2k from a 8k talloc stackframe seems to be bad.

I've coded some talloc_free and talloc_realloc optimizations
which will try to reclaim unused memory from the talloc pool
if it's the last chunk in the pool or if the pool is empty.


I need to add some more VALGRIND_MAKE_MEM_NOACCESS and
talloc_fill logic, but the main code seems to work.

I'm doing some more tests tomorrow.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20110331/b7259217/attachment.pgp>

More information about the samba-technical mailing list