winbindd: speed up fill_grent_mem (i.e. winbindd_getgrent) a lot.
authorMichael Adam <obnox@samba.org>
Thu, 30 Oct 2008 15:38:07 +0000 (16:38 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 30 Oct 2008 15:38:07 +0000 (16:38 +0100)
commit53f325ea3daff2814326c01d3fe8f5f9bfb3b1d4
tree8efcdd33f85167ce6a3f2555d5ae225d9d1bdc0c
parente0e6f254fad469071139b3311cb3a27b47da61f5
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