[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev local directory listing - TOO SLOW
From: |
dickey |
Subject: |
Re: lynx-dev local directory listing - TOO SLOW |
Date: |
Sun, 10 Jan 1999 21:39:36 -0500 (EST) |
> Mike Castle wrote:
>
> > Amazingly enough Bela Lubkin said:
> > > getpwuid() and getgrgid() are slow, on my system, because they open,
> > > read, and close the appropriate file (/etc/passwd or /etc/group) every
> > > time. Maybe other libc implementations cache this information. If not,
> > > this might be a good candidate for a little cache inside HTLoadFile().
> > > It doesn't need to be persistent across calls.
> >
> > A look at idcache.c from GNU fileutils might also provide a bit of help.
>
> Yeah, that looks like it would do just fine.
I added a cache for uid's and gid's a few patches ago. (It's only a
linked list, but should work fine - most directories don't have a lot
of owners). Perhaps the problem is elsewhere.
> >Bela<
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey
- Re: lynx-dev local directory listing - TOO SLOW, (continued)
Re: lynx-dev local directory listing - TOO SLOW, dickey, 1999/01/02
Re: lynx-dev local directory listing - TOO SLOW, Henry Nelson, 1999/01/08
Re: lynx-dev local directory listing - TOO SLOW, Bela Lubkin, 1999/01/10
Re: lynx-dev local directory listing - TOO SLOW,
dickey <=
Re: lynx-dev local directory listing - TOO SLOW, dickey, 1999/01/11
Re: lynx-dev local directory listing - TOO SLOW, Bela Lubkin, 1999/01/13
Re: lynx-dev local directory listing - TOO SLOW, Henry Nelson, 1999/01/13