home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3096 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.4 KB  |  38 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!usc!sdd.hp.com!mips!apple!news.oc.com!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: How to compile a shell script?
  5. Message-ID: <1992Jul23.034303.20282@news.eng.convex.com>
  6. Originator: tchrist@pixel.convex.com
  7. Sender: usenet@news.eng.convex.com (news access account)
  8. Nntp-Posting-Host: pixel.convex.com
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. Organization: CONVEX Realtime Development, Colorado Springs, CO
  11. References: <1992Jul21.121804.24643@cis.ohio-state.edu>
  12. Date: Thu, 23 Jul 1992 03:43:03 GMT
  13. X-Disclaimer: This message was written by a user at CONVEX Computer
  14.               Corp. The opinions expressed are those of the user and
  15.               not necessarily those of CONVEX.
  16. Lines: 20
  17.  
  18. From the keyboard of chung@cis.ohio-state.edu (Michael Chung):
  19. :    Is there any way I can compile a shell script file so that it can
  20. :run faster?
  21.  
  22. Not significantly.  The problem is that even if you compile something 
  23. like:
  24.  
  25.     while read line; do
  26.     echo `echo $line | tr ' ' '\12' | sort -n | tr '\12' ' '`
  27.     done
  28.  
  29. It's still too damn slow.  You have to grok the logic and 
  30. rewrite.  It needs a human.
  31.  
  32. --tom
  33. -- 
  34.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  35.  
  36. BASIC: A programming language.  Related to certain social diseases in
  37. that those who have it will not admit it in polite company.
  38.