s4-dsdb: use DLIST_ADD() not DLIST_ADD_END()
commite1abb39388a154b405583bd55eb4bb9c8cfa13fe
authorAndrew Tridgell <tridge@samba.org>
Tue, 15 Sep 2009 17:01:26 +0000 (15 10:01 -0700)
committerAndrew Tridgell <tridge@samba.org>
Tue, 15 Sep 2009 21:52:00 +0000 (15 14:52 -0700)
treeac6a8b6a098583a615c1062f794a4dc9776c05ff
parent4861194f39bf826f3405452adc172cf5c240715b
s4-dsdb: use DLIST_ADD() not DLIST_ADD_END()

Using DLIST_ADD_END() to construct a long list is very inefficient (it
is O(n^2). These lists are not ordered, so using DLIST_ADD() is much
better.
source4/dsdb/schema/schema_init.c
source4/dsdb/schema/schema_set.c