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>
* table once the defaults are set */
ZERO_STRUCT(Globals);
- Globals.ctx = talloc_new(NULL);
+ Globals.ctx = talloc_pooled_object(NULL, char, 272, 2048);
for (i = 0; parm_table[i].label; i++) {
if ((parm_table[i].type == P_STRING ||