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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,abbaab2e39561193 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-05 09:40:45 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.frii.net!newsfeed.frii.net!140.99.99.194.MISMATCH!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread4.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Variant vs. Tagged Type References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Wed, 05 Nov 2003 17:40:45 GMT NNTP-Posting-Host: 63.184.33.189 X-Complaints-To: abuse@earthlink.net X-Trace: newsread4.news.pas.earthlink.net 1068054045 63.184.33.189 (Wed, 05 Nov 2003 09:40:45 PST) NNTP-Posting-Date: Wed, 05 Nov 2003 09:40:45 PST Xref: archiver1.google.com comp.lang.ada:2093 Date: 2003-11-05T17:40:45+00:00 List-Id: Frank Piron wrote: > is it possible to make some general statements > concerning the alternative variant vs. tagged > type with respect to runtime performance? > For example: > if we have an array A 1) of type access to a variant > 2) of type access 'Class > what can be said about the runtime performance > of the expression > A(I).? It sounds as if you're engaging in premature optimization (the root of all evil). Do it whichever way is best suited to the problem, and see if the result is fast enough. 99.99% of the time, the microsecond differences you're worrying about don't make a difference. -- Jeff Carter "Many times we're given rhymes that are quite unsingable." Monty Python and the Holy Grail 57