winbindd: speed up fill_grent_mem (i.e. winbindd_getgrent) a lot.
commitbb3e189c67b10aaae66993ced1c214c7a63d026a
authorMichael Adam <obnox@samba.org>
Sun, 2 Nov 2008 22:02:02 +0000 (2 23:02 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Dec 2008 10:39:04 +0000 (9 11:39 +0100)
treedf0e9ade89e9eb845c2557bad66896ae5b9f2514
parentdb6b38422962011155c911e275239cac968784cd
winbindd: speed up fill_grent_mem (i.e. winbindd_getgrent) a lot.

With large groups, getgrent ran into timeouts because after each
single user that was added to the expanded group list, the list
was sorted and made unique.

Now the list is sorted just once after all members have been added.

Michael
(cherry picked from commit ea0858842d20966796bb47f20bae04bbb7232643)
source/winbindd/winbindd_group.c