Subject: Re: CVS commit: [elad-kernelauth] src/sys/kern
To: None <elad@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 03/13/2006 09:14:18
> Module Name:	src
> Committed By:	elad
> Date:		Sun Mar 12 23:41:07 UTC 2006
> 
> Modified Files:
> 	src/sys/kern [elad-kernelauth]: kern_auth.c
> 
> Log Message:
> The group list we keep in kauth_cred_t is always sorted, so use binary
> search for kauth_cred_ismember_gid().

i doubt if it makes thing faster, given the small NGROUPS.

i don't think sorting groups is a good idea in general,
given that there's a filesystem which cares about the order of groups.
ie. nfs.

YAMAMOTO Takashi