9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rogpeppe@gmail.com (roger peppe)
Subject: [9fans] how can I set path
Date: Fri, 25 Mar 2011 13:58:06 +0000	[thread overview]
Message-ID: <AANLkTi=CADjOGZD+9UPTmwjrHBp1BXQLYqtaQE7WxxuJ@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=9pYd8CrfpLTaNfavQMv+aDb+VPazqMw7nw3bj@mail.gmail.com>

On 25 March 2011 13:53, roger peppe <rogpeppe at gmail.com> wrote:
> i always set $path to (/bin .)
> it can be much faster, apart from anything else.

% 9fs sources
% cd /n/sources
% echo $path
/bin .
% time rc -c '{for(i in `{seq 1 100}){echo $i}}' > /dev/null
0.01u 0.09s 0.27r 	 rc -c {for(i in `{seq 1 100}){echo $i}}
% path=(. /bin)
% time rc -c '{for(i in `{seq 1 100}){echo $i}}' > /dev/null
0.00u 0.09s 12.20r 	 rc -c {for(i in `{seq 1 100}){echo $i}}
%



  reply	other threads:[~2011-03-25 13:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-25  4:18 流明
2011-03-25  4:23 ` Jacob Todd
2011-03-25 11:57 ` erik quanstrom
2011-03-25 12:14   ` Lucio De Re
2011-03-25 12:27     ` erik quanstrom
2011-03-25 13:53       ` roger peppe
2011-03-25 13:58         ` roger peppe [this message]
2011-03-25 15:42 ` Zhai
2011-03-25  4:33 流明
2011-03-25  4:36 ` John Floren
2011-03-25  4:40 Jacob Todd
2011-03-25  4:42 流明

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='AANLkTi=CADjOGZD+9UPTmwjrHBp1BXQLYqtaQE7WxxuJ@mail.gmail.com' \
    --to=rogpeppe@gmail.com \
    /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).