s3:registry: hash the list of subkeys in the regsubkey_ctr
commit0b22f8b99c0291f2e45166124358844127fb8edf
authorMichael Adam <obnox@samba.org>
Wed, 25 Feb 2009 08:53:16 +0000 (25 09:53 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 26 Feb 2009 12:22:54 +0000 (26 13:22 +0100)
tree9a933077726a05b1c69fd0c178639e3a1307139e
parent149d94dd8f5513af9f75d568507c880c63b9187e
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
source3/include/proto.h
source3/registry/reg_api.c
source3/registry/reg_objects.c