s4-dsdb: use DLIST_ADD() not DLIST_ADD_END()
authorAndrew Tridgell <tridge@samba.org>
Tue, 15 Sep 2009 17:01:26 +0000 (10:01 -0700)
committerAndrew Tridgell <tridge@samba.org>
Wed, 16 Sep 2009 01:45:42 +0000 (18:45 -0700)
commitff8ad222cd1ec26f0e29e409525e16d3b0f1b8c4
tree46f11080152feb241e3face925d2b404abfc3be8
parent12f689eef4394e8c2cf8efdded06d5b398d6e0a7
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