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-Language: ENGLISH,CP1252 Path: g2news2.google.com!postnews.google.com!h30g2000vbr.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Yannick_Duch=EAne_Hibou57?= Newsgroups: comp.lang.ada Subject: Re: Performance of access type : a tiny mistake in the WikiBook ? Date: Wed, 7 Oct 2009 16:30:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <31da5154-9739-4ead-8437-aaa5d70dc7e8@h30g2000vbr.googlegroups.com> References: <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 1254958246 21454 127.0.0.1 (7 Oct 2009 23:30:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 7 Oct 2009 23:30:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h30g2000vbr.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:8614 Date: 2009-10-07T16:30:46-07:00 List-Id: Hi Bill, and thanks for your reply On 8 oct, 00:38, "(see below)" wrote: > surely it should indicate the likely effect of the "not null" > and "access constant" options as well. That's a relevant comment indeed You're right with that point I came into it because I'm seeking about common performance considerations. So I've found this article on WikiPedia. I'm also seeking about informations on the average impact of inlined in generics. The same WikiBook states it has bad impact on performance, in the way it prevents the compiler from using code sharing. But I wonder if it applies only to the actually inlined methods or to the whole package. I also wonder about any possible impact of an =93 Object : Object_Type'Class =94 procedure/function argument type compared to a view conversion in the method's body providing its argument type is Object_Type instead of Object_Type'Class. In short, is there a typical performance impact if I use (when the choice can be made) an Object_Type'Class argument type or if I use an Object_Type argument and a =93 My_Type'Class (My_Object) =94 inside the body (this latter question is more related to references as well).