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,effb80d4bb7716dd X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: Pointer Arithmetic (was: Wanted: Ada STL....) Date: 1999/02/03 Message-ID: <799eph$7gf$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 440146148 References: <790f4q$3l@bgtnsc01.worldnet.att.net> <797na3$obg$1@nnrp1.dejanews.com> <36B78CDD.1372@lanl.gov> <798d2s$cce$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x13.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Feb 03 12:17:58 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-02-03T00:00:00+00:00 List-Id: In article <798d2s$cce$1@nnrp1.dejanews.com>, adam@irvine.com wrote: > In article <36B78CDD.1372@lanl.gov>, > But what if the operation of stepping through the array > isn't so neatly packaged? Note that while I was talking > about stepping through an array, I never said anything > about this stepping taking place inside a single loop. Find a real program and measure the effect, you will be surprised how small it is in practice, and indeed I doubt you will find anything to measure in a real program. Yes, you can always construct an artifical benchmark that shows something, but in practice this particular issue is a non-issue in real programs. The kind of program you postulate just does not occur in practice, or occurs so seldom that the optimization effect you are talking about is negligible. Figuring out what really makes a difference in real programs is not an easy task, and most people's intution in this area is just plain wrong. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own