s3:registry: hash the list of subkeys in the regsubkey_ctr
authorMichael Adam <obnox@samba.org>
Wed, 25 Feb 2009 08:53:16 +0000 (09:53 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 19 Mar 2009 17:03:59 +0000 (18:03 +0100)
commitd306b158231658458c4cdadc44afee79c648fba2
tree343f0b2b8a07750ef3932c6ae9545796a7b7b0b5
parent195118915f5d420f36f49b2333793781a9035824
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>
source/include/proto.h
source/registry/reg_api.c
source/registry/reg_objects.c