Efficient coding considered harmful?

Jonathan Leech leech at tlab1.cs.unc.edu
Wed Nov 2 03:30:55 AEST 1988


In article <273 at tijc02.UUCP> pjs269 at tijc02.UUCP (Paul Schmidt	     ) writes:
> Using prof(1) under UNIX I have always been suprised at where the
> time is spent for a given program.  And using this shows which
> routines need to be optimized.  Using a benchmark it was easy to see
> that only 10% of the routines were run 90% of the time.

    There are certainly counterexamples. I have occasionally profiled
the text editor I maintain. No one procedure took more than 3% of
execution time.
--
    Jon Leech (leech at cs.unc.edu)    __@/
    ``It seemed to him that in addition to being beautiful she
      brought out all that was best in him of intellect and soul.
      That is to say, she let him talk oftener and longer than
      any girl he had ever known.''
	- P. G. Wodehouse



More information about the Comp.lang.c mailing list