From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,168a42f49aadcfd8 X-Google-Attributes: gid103376,public From: "Steve Doiel" Subject: Re: Does ObjectAda optimize at all?? Date: 1998/08/14 Message-ID: <35d4ee57.0@news.pacifier.com>#1/1 X-Deja-AN: 381298664 References: <6qcl1i$qij$1@nnrp1.dejanews.com> <35CE22D9.113EAEEC@cts.com> <6qmulq$heb$1@nnrp1.dejanews.com> <35d4797b.244364@SantaClara01.news.InterNex.Net> <6r2a41$prp$1@nnrp1.dejanews.com> <35d4d400.23421382@SantaClara01.news.InterNex.Net> Newsgroups: comp.lang.ada X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Date: 1998-08-14T00:00:00+00:00 List-Id: Tom Moran wrote in message <35d4d400.23421382@SantaClara01.news.InterNex.Net>... >>making an unreadable >>mess of thier source code for the sake of speed. >Someone said "Premature optimization is the root of all evil." In "The Practical Guide to Structured Systems Design" by Meiler Page - Jones they have a chapter on optimization. I work by the philosophy presented there: It's easier to get a working system efficient than it is to get an efficient system working. Simplicity is a virtue that bears it's own rewards. Optimize a system only if it fails a performance test. Optimize only the parts of the system worth optimizing (10% of the code runs 90% of the time). It has been my experience that making a clean system that is not heavily optimized often reveals high level changes that lead to greater gains than low level optimizations. BTW: I am one of those programmers who has had to go in and try to get a system running that was too heavily optimized. I've even seen heavily optimized code that is only run once at boot time on a system that is rarely restarted. FWIW SteveD