Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: more problems w/ irix
- X-seq: zsh-workers 2411
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: coleman@xxxxxxxxxxxxxxx (Richard Coleman)
- Subject: Re: more problems w/ irix
- Date: Thu, 14 Nov 1996 15:38:43 +0000 (GMT)
- Cc: zefram@xxxxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199611141523.KAA15180@xxxxxxxxxxxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author