SPUG: Does Perl Scale? (Was: Evolution of Perl)

Bill Campbell bill at celestial.com
Mon Aug 13 18:28:46 CDT 2001

On Mon, Aug 13, 2001 at 02:24:18PM -0700, Ken McGlothlen wrote:
>"Melissa D. Binde" <binde at terindell.com> writes:
>| It's important to not use that statement to justify "developers should never
>| have to write good code or optimize it, because hardware is always cheaper
>| than their time."
>It bears pointing out that ninety percent of speed issues aren't issues of
>interpreted vs compiled, nor is it compiler optimization or things like that.
>It's just badly swotted-up code.  I can't tell you how many times I've doubled
>the speed of someone else's program just by moving crap out of a loop that
>didn't have to be in there.  :)

The first programming job I ever did was on a Bendix G-20 mainframe in
FORTRAN involved lots of fresnel functions.  I cut the run time from 20
minutes down to under 2 by replacing one statement in a subroutine that was
executed 20,000 times per run where the engineer (I'm a scientist, not a
programmer), calculated the square root of PI/2 each time the subroutine
was called.  I just put it in common, and calculated it once in the main
program before starting the loop.  Of course compiler technology has
progressed a bit since the Bendix Mishawaka (sp?) FORTRAN of 1966, but the
principle's the same.

INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

DOS: n., A small annoying boot virus that causes random spontaneous system
     crashes, usually just before saving a massive project.  Easily cured by
     UNIX.  See also MS-DOS, IBM-DOS, DR-DOS.

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/

More information about the spug-list mailing list