This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: nscd caching getpwent() and getgrent()


On Friday 04 August 2006 20:35, Nicholas Miell wrote:
> On 8/4/06, Mike Frysinger <vapier@gentoo.org> wrote:
> > On Thursday 03 August 2006 22:23, Nicholas Miell wrote:
> > > however I'd like to point out
> > > that bash does have programmable completion and you may be able to
> > > work up some hack to do user/group name caching at that level
> > > (unfortunately, I don't think you can override builtin completion
> > > methods, which means you can't just say "instead of using builtin user
> > > completion, call this shell function instead").
> >
> > but that wouldnt work on nearly the same scale as nscd ... you'd get a
> > cache for the active shell, but every new shell would have the same
> > initial (minutes long) penalty when doing user completion
>
> Nothing stops you from maintaining a global cache shared by all shell
> processes.

huh ?  and how would you go about doing that ?  shells are sep processes that 
share no such data
-mike

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]