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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!news2.arglkargh.de!news.n-ix.net!news.belwue.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Using local storage pools... Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <7elam6trrv39c3p9iop4fiduqa1jrat4r4@4ax.com> Date: Wed, 23 Feb 2011 21:42:49 +0100 Message-ID: <1s8rimsarxcf5$.11o58i7ssmfic.dlg@40tude.net> NNTP-Posting-Date: 23 Feb 2011 21:42:47 CET NNTP-Posting-Host: 120ff03f.newsspool4.arcor-online.net X-Trace: DXC=b`7d>1loUnoeoCI^f\Y]Ea4IUK67Cdc?2d[6LHn;2LCVn[JN`KO@Wk X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:18534 Date: 2011-02-23T21:42:47+01:00 List-Id: On Wed, 23 Feb 2011 19:01:22 +0000, Brian Drummond wrote: > 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. Why don't you implement an arena pool? It is a quite common technique to allocate nodes of a tree in an arena and never deallocate them explicitly. I am always use this for the nodes of the abstract syntax tree (AST). Note that since arena never deallocates, allocation in arena becomes trivial. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de