zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <zefram@dcs.warwick.ac.uk>
To: coleman@math.gatech.edu (Richard Coleman)
Cc: zefram@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu
Subject: Re: more problems w/ irix
Date: Thu, 14 Nov 1996 15:38:43 +0000 (GMT)	[thread overview]
Message-ID: <27656.199611141538@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <199611141523.KAA15180@redwood.skiles.gatech.edu> from "Richard Coleman" at Nov 14, 96 10:23:10 am

>> It's a nice syntax.  If it's grossly inefficient, we should improve the
>> code; being built in to the shell it *ought* to be more efficient than
>> execing cat, at least for small files.
>
>It doesn't exec a cat, it does the reading/writing itself (in closemn).

I'm aware of that.  I was responding to the statement that it is
inefficient, saying that "foo <a <b <c" should be more efficient than
"cat a b c | foo".  If it isn't, we should make it so.

>I'm not sure how we could make this more efficient without using something
>like mmap().

I think using mmap() would be a good move.  An madvise(), as used by
some cats, would also help performance.  We can do autoconf checks for
these functions, and would in any case need to have the code fall back
on a read/write loop in case mmap() is impossible.

-zefram


  reply	other threads:[~1996-11-14 15:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-13 17:23 Ray Jones
1996-11-13 18:38 ` Bart Schaefer
1996-11-13 18:43   ` rjones
1996-11-14 10:01 ` Peter Stephenson
1996-11-14 15:08   ` Zefram
1996-11-14 15:23     ` Richard Coleman
1996-11-14 15:38       ` Zefram [this message]
1996-11-14 16:05         ` Richard Coleman
1996-11-15 11:09     ` Peter Stephenson

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=27656.199611141538@stone.dcs.warwick.ac.uk \
    --to=zefram@dcs.warwick.ac.uk \
    --cc=coleman@math.gatech.edu \
    --cc=zsh-workers@math.gatech.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).