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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,98dc917fce16b418,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,CP1252 Path: g2news2.google.com!postnews.google.com!v2g2000vbb.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Performance of access type : a tiny mistake in the WikiBook ? Date: Wed, 7 Oct 2009 13:59:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <91ad7397-27a8-4b9d-811e-6e62d485645c@v2g2000vbb.googlegroups.com> NNTP-Posting-Host: 86.75.149.141 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1254949186 30467 127.0.0.1 (7 Oct 2009 20:59:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 7 Oct 2009 20:59:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v2g2000vbb.googlegroups.com; posting-host=86.75.149.141; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8612 Date: 2009-10-07T13:59:46-07:00 List-Id: Hi folks, I was looking at the WikiBook, the section about access types. I do not know it is a tiny mistake or something I did not understood. http://en.wikibooks.org/wiki/Ada_Programming/Types/access In one place, it is said =93 Depending on the implementation an access might also render better performance than access all. =94 which match what I had believed for long, but later, there is a list of best to worst performance comparing access techniques : =93 1) "in" modifier : parameter is passed into the subprogram. 2) "out" modifier : parameter is passed from the subprogram. 3) "in out" modifier : parameter may be modified by the subprogram. 4) access all : access to any (aliased) object. 5) pool access : the access is always within a storage pool and only checks for not null are performed upon dereference. 6) anonymous access : complex "stack deeps level" checks are needed so an "anonymous access" can be safely converted from and to an "access all" or "pool access". =94 Pool Access is quoted after Access All, at position 5 Just a detail, but I wonder