From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <253943F2.5739C297@mail.gmail.com> From: Russ Cox To: 9fans@cse.psu.edu Subject: Re: [9fans] ports performance Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <01dc176690fe0b98b9b529ff628cbcf9@collyer.net> Date: Thu, 8 Apr 2004 12:45:11 -0700 Topicbox-Message-UUID: 56966aaa-eacd-11e9-9e20-41e7f4b1d025 It is in fact getpwuid and getgrgid that are taking the time, not the extra stat calls. (Quite stupid given that I'm asking the same questions over and over again -- you'd think the routines would not need to work so hard the second time!) I just checked into CVS a version of _p9dir that caches the last uid and gid it looked up. This should speed up the overwhelming majority of cases. I built a new tarball too, since there have been a handful of other minor changes. In response to the utility comment, if you don't want Plan 9's ls, you can put /bin in your path before /usr/local/plan9/bin, and never worry again. Personally, I like the fact that Plan 9's ls -l is more compact on the screen, that it does quoting of special names for me, and that I don't have to learn the differences between all the different ls commands on the various Unixes I have to use. Ditto (even more so) for ps. Russ