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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4692663255b51613 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: on using array index, vectorized operation Date: Sun, 27 Mar 2011 15:43:26 -0700 Organization: Aioe.org NNTP Server Message-ID: References: <5efa3275-a42b-4d97-ac75-428f8cdf895d@j13g2000pro.googlegroups.com> <74980e07-b6d2-42ee-9354-5c2dfd5fdcde@y31g2000prd.googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:18520 Date: 2011-03-27T15:43:26-07:00 List-Id: On 3/27/2011 3:37 PM, Phil Clayton wrote: > > My advice would be to stick to the loop version, with > temporary variables if necessary, as that is most traceable to the > original text and surely the most maintainable. > > Phil > I think you are right in this advice :) But it is hard to go back to using explicit loops when one is used to working with vectorized operations. I would also think loops will be slower, because vectorized operations could be much more optimized by the compiler and such. Any way, no language is perfect. --Nasser