winbindd: speed up fill_grent_mem (i.e. winbindd_getgrent) a lot.
authorMichael Adam <obnox@samba.org>
Sun, 2 Nov 2008 22:02:02 +0000 (23:02 +0100)
committerMichael Adam <obnox@samba.org>
Sun, 2 Nov 2008 22:02:02 +0000 (23:02 +0100)
commitea0858842d20966796bb47f20bae04bbb7232643
treeeacd56258c3bf9b93cc3b0bf51d71855d86a9090
parent9c4617f18f851e3f79061ba89ce0d50a83c6563d
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
source/winbindd/winbindd_group.c