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,ed3a51e96a1c868b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Using local storage pools... Date: Fri, 25 Feb 2011 21:07:01 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <7elam6trrv39c3p9iop4fiduqa1jrat4r4@4ax.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1298689625 10219 69.95.181.76 (26 Feb 2011 03:07:05 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 26 Feb 2011 03:07:05 +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: g2news2.google.com comp.lang.ada:18580 Date: 2011-02-25T21:07:01-06:00 List-Id: "Brian Drummond" wrote in message news:7elam6trrv39c3p9iop4fiduqa1jrat4r4@4ax.com... >I am trying to learn a little about storage pools, with a view to >(hopefully) > using local pools to improve the Binary_Trees benchmark in the same way as > some > of the faster C benchmarks. > > Arguably they cheat : they do not explicitly free each tree node (the > "free" > call has been deleted!) but free the entire pool at the end of the loop. > But if that's valid, Ada should be able to do the same. Another thought: the Multiway_Tree container may very well have this behavior. The bounded version *has* to have this behavior. Not sure what effect using the container would have on the benchmark, but it would be an interesting option to try. (Of course, this is another Ada 2012 feature, but it is easy to implement in existing compilers and I believe it is available in recent versions of GNAT.) Randy.