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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,56525db28240414a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.33.148 with SMTP id h20mr2772680qad.3.1342579661474; Tue, 17 Jul 2012 19:47:41 -0700 (PDT) Received: by 10.66.72.73 with SMTP id b9mr94348pav.9.1342579661357; Tue, 17 Jul 2012 19:47:41 -0700 (PDT) MIME-Version: 1.0 Path: a15ni8315952qag.0!nntp.google.com!x2no8785457qaj.0!news-out.google.com!b9ni160649871pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder5.xlned.com!feed.xsnews.nl!border-3.ams.xsnews.nl!plix.pl!newsfeed2.plix.pl!news.mi.ras.ru!spln!extra.newsguy.com!feeds.phibee-telecom.net!news.e-liance.net!news.e-liance.net!aioe.org!.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Efficient Sequential Access to Arrays Date: Sun, 15 Jul 2012 21:05:05 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <44f2bfd0-75ed-4b9c-982e-61d5308f9c01@googlegroups.com> NNTP-Posting-Host: Lf0Nl3CcQzx+ocHx9cmuGg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Tom's custom newsreader Date: 2012-07-15T21:05:05+00:00 List-Id: > as the use of Indexes was too slow. An example of this is lets say we are a= > ccessing element 5 from array A "A(5)" this requires a multiplication to ac= > cess (base_address + index * record_size). To access the neighbour A(6) als= Can you reasonably pad the element size to a power of two so the multiplication can be replaced by a shift? It would be interesting to see the result, in various hardware contexts.