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=-1.3 required=5.0 tests=BAYES_00,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: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Does ObjectAda optimize at all?? Date: 1998/08/16 Message-ID: #1/1 X-Deja-AN: 381676619 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> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 903282307 21605 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-08-16T00:00:00+00:00 List-Id: T.E.D. says <> In my experience, programmers often do not know enough to know whether such manual optimizations help or hurt. They often end up not only trashing the code, but also making it run nmore slowly. For example, it takes a careful analysis of icache usage to know whether loop unrolling is helpful. At the very least, you shoudl only indulge in this kind of low level optimziation of your coded if (a) profiling shows that there is a potential for improvement and (b) testing shows the change is in fact helpful