* Why I want read to be a builtin:
@ 1993-06-15 20:45 Chris Siebenmann
0 siblings, 0 replies; only message in thread
From: Chris Siebenmann @ 1993-06-15 20:45 UTC (permalink / raw)
read.sh is a 'while read; do : ; done' loop; line.sh is a 'while line
>/dev/null; do :; done' loop.
: hawkwind.utcs ; wc -l foo; time ./read.sh <foo; time ./line.sh <foo
0.8 real 0.5 user 0.2 sys
38.1 real 9.4 user 26.5 sys
Sometimes 'read' is what you need for something, and when it is, having
to run an external program for it can really kill performance. I'd really
rather write everything in rc, but when read comes up right now, I'm
forced to drop into sh.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-06-15 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1993-06-15 20:45 Why I want read to be a builtin: Chris Siebenmann
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).