param: change the talloc context attached to globals structure in s3 loadparm to...
commite812b726cd922e9ffd9ac035dbf8ebd700b1fc0b
authorGarming Sam <garming@catalyst.net.nz>
Thu, 27 Feb 2014 02:20:06 +0000 (27 15:20 +1300)
committerJeremy Allison <jra@samba.org>
Wed, 7 May 2014 17:49:14 +0000 (7 19:49 +0200)
treec6146c423c4a91e9c7c81f0bbf9293a5a2a8d329
parent2dd7c890792cf12049ec13b88aa4e9de23035f9d
param: change the talloc context attached to globals structure in s3 loadparm to a pool

With many allocations being made, with many empty strings in loadparm, it should be more
effective to use a talloc pool instead of a normal talloc context.

The numbers chosen are based around a simple testparm instance.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-on: https://gerrit.samba.org/157
Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/param/loadparm.c