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,677065ed1513ef3b,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!r13g2000vbr.googlegroups.com!not-for-mail From: "patrick.gunia@googlemail.com" Newsgroups: comp.lang.ada Subject: Ada Tagged Type-Operation assign? Date: Fri, 15 May 2009 06:57:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: <003ad11c-1161-4867-9453-28eaf5663f04@r13g2000vbr.googlegroups.com> NNTP-Posting-Host: 78.34.66.221 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1242395845 25388 127.0.0.1 (15 May 2009 13:57:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 15 May 2009 13:57:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r13g2000vbr.googlegroups.com; posting-host=78.34.66.221; posting-account=D7TrwwoAAAAVyN71CASRiSp392RIjlsB User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (Windows NT 6.0; U; de) Presto/2.1.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5856 Date: 2009-05-15T06:57:25-07:00 List-Id: Hi all, I got a question concerning Ada-Tagged-Type implementation. I=B4m currently comparing two versions of a program written in Ada, one uses tagged types, the other one doesn=B4t. I use VTune to evaluate the runtime-performance of both versions and found that the call graph display of vtunes shows one function in the tagged-type version which gets called massively whereas there aren=B4t any calls to these functions in my "non-tagged-type-version". This operation isn=B4t declared by me, thus it has to be provided by the system. The operation is named "assign". The funny thing about this is, that this operations gets only called for tagged types which aren=B4t inherited, all my other tagged types which are organized in class hierarchies don =B4t show this behaviour. It might be important that these types are aubclasses from Ada.Finalization.Controlled, maybe that=B4s a reason why I don=B4t find the "assign"-operation. So, now here are my questions: Is the operation "assign" automatically provided for tagged types? If so, is there any possibility to control this method or do I have to accept it? The reason for my second question simply is the fact, that the self time of the function is not relevant (0,00ms), though when it gets called 3 billion times, it starts to be a relevant factor for performance differences... Thanks for your help, Patrick