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: 103376,7fcf9180e7ba7ab1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!u-picardie.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: A suggestion for resource management Date: Mon, 23 Aug 2010 18:22:00 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <8762z4gcoi.fsf@mid.deneb.enyo.de><1q8io375n581c$.7mbvmavnyzyy$.dlg@40tude.net><87d3tb7npi.fsf@mid.deneb.enyo.de><18bfxkfl1kjy0$.4vebp50shxrp$.dlg@40tude.net> <8739u73c6l.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1282605724 6359 69.95.181.76 (23 Aug 2010 23:22:04 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 23 Aug 2010 23:22:04 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-RFC2646: Format=Flowed; Original Xref: g2news1.google.com comp.lang.ada:13684 Date: 2010-08-23T18:22:00-05:00 List-Id: "Florian Weimer" wrote in message news:8739u73c6l.fsf@mid.deneb.enyo.de... ... > You need escape analysis or inter-procedural scalar replacement to > eliminate the tag. But it certainly can be done, and the additional > word will not hurt in all but the most extreme cases. Why would you bother? The tag itself isn't very large and exists once per type. The tag component is usually a word or two per object; it isn't going to matter unless there are 10s of thousands of objects. (And if there *are* 10s of thousands of objects, the overhead of finalizing the objects, no matter what you call it [such as calling Close in this example], is going to be a much greater problem. Tiny, common objects can't require cleanup, period.) Randy.