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 11:12:11 +0000 (12:12 +0100)
commit1eaff4f96768912b31795c1c8b6a4741e2e746e1
treee2c5468ad9d0ea70ed1c4f7cee5a7fc32e07719e
parented8e84dbda344b19f1c6037a630e60885f722f13
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