9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <russcox@gmail.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] ports performance
Date: Thu,  8 Apr 2004 12:45:11 -0700	[thread overview]
Message-ID: <253943F2.5739C297@mail.gmail.com> (raw)
In-Reply-To: <01dc176690fe0b98b9b529ff628cbcf9@collyer.net>

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


  reply	other threads:[~2004-04-08 19:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-08 18:51 Scott Schwartz
2004-04-08 18:59 ` rog
2004-04-08 18:57   ` Rob Pike
2004-04-08 19:07     ` Scott Schwartz
2004-04-08 19:28 ` Geoff Collyer
2004-04-08 19:45   ` Russ Cox [this message]
2004-04-08 19:51     ` Scott Schwartz
2004-04-08 19:57       ` Russ Cox
2004-04-09  2:32 ` Russ Cox
2004-04-08 19:10 Ben Huntsman
2004-04-08 19:21 ` rog
2004-04-08 19:35 ` a
2004-04-08 19:44 ` Scott Schwartz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=253943F2.5739C297@mail.gmail.com \
    --to=russcox@gmail.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).