s3:registry: hash the list of subkeys in the regsubkey_ctr
commit1386844f2c985ad88861000b0fd9cef478ea459f
authorMichael Adam <obnox@samba.org>
Wed, 25 Feb 2009 08:53:16 +0000 (25 09:53 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 27 Mar 2009 13:15:45 +0000 (27 14:15 +0100)
tree9efbbe0579bc54e78f227e23a3e9750b48f3b0cf
parentc0868398ca5ce7e161ca83bf1fa14842ddb6ae1c
s3:registry: hash the list of subkeys in the regsubkey_ctr

This removes many loops over all the arrays
(from regsubkey_ctr_key_exists) and thus
reduces "net conf drop" from 1m55 to 48seconds
and "net conf import" from 1m55 to 58 seconds
for 2000 shares on my box.

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 1eaff4f96768912b31795c1c8b6a4741e2e746e1)
source/include/proto.h
source/registry/reg_api.c
source/registry/reg_objects.c