Newsgroups: comp.sys.apollo Path: utzoo!utgpu!cunews!bnrgate!bwdls61!bwdla54!tonyf From: tonyf@bwdla54.bnr.ca (Tony Farrow) Subject: Re: reducing the delay between edrgy and getpwuid() etc ... Message-ID: <1991Feb25.160207.20221@bwdls61.bnr.ca> Keywords: getpwent getgrent initgroups Sender: usenet@bwdls61.bnr.ca (Use Net) Reply-To: tonyf@bwdla54.bnr.ca (Tony Farrow) Organization: bnr References: <1991Feb20.211014.5823@bwdls61.bnr.ca> <4ff2e1af.20b6d@apollo.HP.COM> <1157@nikhefh.nikhef.nl> Date: Mon, 25 Feb 1991 16:02:07 GMT In article <1157@nikhefh.nikhef.nl>, e07@nikhefh.nikhef.nl (Eric Wassenaar) writes: |> In article <4ff2e1af.20b6d@apollo.HP.COM>, pato@apollo.HP.COM (Joe Pato) writes: |> > appropriate entry). If you find that you need to use getpwent |> > you will observe much better performance if you first call: |> > setpwfile("/etc//passwd"); |> If you are using getpwent the above will help you. However applications such as cron use initgroups/getgrent to initialize your group entries. If you have a large group file then you will see a fair amount of data transfer during the initgroups call. This is improved in 10.3 (thx for the info Joe) but if you are running at 10.1 and 10.2 applications such as cron will pull the entire groups file everytime they have an entry to be executed. regards. -- *--------------------------+----------------------------------------* | Tony Farrow | NetNorth/BITNET: TONYF@BNR.CA | | Internet Systems | | | Bell-Northern Research | UUCP: ...uunet!bnrgate!bwdla54!tonyf | | P.O. Box 3511, Station C | Phone: (613)763-4903 ESN: 393-4903 | | Ottawa, Canada K1Y 4H7 | FAX: (613)763-3283 ESN: 393-3283 | *--------------------------+----------------------------------------* Brought to you by Super Global Mega Corp .com