ldb: create a cache of known wellknown objects instead of continously searching in...
commit6122acad0f1a7bc23b6f58862c16968e13da979d
authorMatthieu Patou <mat@matws.net>
Mon, 25 May 2015 16:17:55 +0000 (25 09:17 -0700)
committerStefan Metzmacher <metze@samba.org>
Mon, 24 Aug 2015 21:46:22 +0000 (24 23:46 +0200)
tree16210f75aa49c77140000fec4d0e29179da0ec8d
parentc049106bf8267b30a9242d2d574661291cced780
ldb: create a cache of known wellknown objects instead of continously searching in the db

Profiling on dbcheck have shown that we spend 10% of the time looking
for wellknown objects.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10973

Change-Id: I13ed58e8062d1b7b6179d17b0e7e56f943572c6c
Signed-off-by: Matthieu Patou <mat@matws.net>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
python/samba/samdb.py