winbindd: speed up fill_grent_mem (i.e. winbindd_getgrent) a lot.
commit29877eedfe471c9fe051a655d6c581f6af40bff1
authorMichael Adam <obnox@samba.org>
Thu, 30 Oct 2008 15:38:07 +0000 (30 16:38 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 18 Nov 2008 09:06:49 +0000 (18 10:06 +0100)
tree64ae39d38e13652de31db6c0125d729733ca3949
parentde682e7c8ad7a80c2c19cbbb6a94d40132882ee7
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 9ff54794f1a477cc294ddef6b218a5e68c894128)
source/winbindd/winbindd_group.c