s3:registry avoid updating keys which are going to be deleted in
authorGregor Beck <gbeck@sernet.de>
Mon, 1 Aug 2011 13:27:46 +0000 (15:27 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 8 Aug 2011 13:27:07 +0000 (15:27 +0200)
commit356ed8644c0099a70ece5b7d5104662454d03ef8
treef74f3763b3167d197adc5a74ab511672218a470c
parentdb06b61a1d3d38140578c004eb9d6cb3243d2870
s3:registry avoid updating keys which are going to be deleted in
reg_deletekey_recursive

this changes the complexity from O(n^2) to O(n) and reduces the time of
a 'net conf drop' with 10000 shares from 6min to 1.5s

Signed-off-by: Michael Adam <obnox@samba.org>
source3/include/registry.h
source3/registry/reg_api.c
source3/registry/reg_backend_db.c
source3/registry/reg_backend_smbconf.c
source3/registry/reg_dispatcher.c
source3/registry/reg_dispatcher.h