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!news3.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!195.208.113.2.MISMATCH!goblin2!goblin.stu.neva.ru!newsfeed.utanet.at!texta.sil.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool2.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> <1s8rimsarxcf5$.11o58i7ssmfic.dlg@40tude.net> <17i1ytb9bptzk$.1b6rl6rjp4p79.dlg@40tude.net> <4d662a37$0$7659$9b4e6d93@newsspool1.arcor-online.net> Date: Thu, 24 Feb 2011 11:09:36 +0100 Message-ID: <1cgjrlknb1yjw.1ekd6t7msma6y$.dlg@40tude.net> NNTP-Posting-Date: 24 Feb 2011 11:09:33 CET NNTP-Posting-Host: 1865bf3a.newsspool1.arcor-online.net X-Trace: DXC=3IGM9FNRbfAk:C4l9A;OcOic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgBZYUBk^8eT;I[6LHn;2LCVN[ On Thu, 24 Feb 2011 10:51:51 +0100, Georg Bauhaus wrote: > On 2/24/11 10:26 AM, Dmitry A. Kazakov wrote: >> On Wed, 23 Feb 2011 23:55:05 +0000, Brian Drummond wrote: >> >>> The other : the shootout rules explicitly disallow implementing your own pool. >> >> Huh: >> >> type Nodes_Arena is array (1..) of aliased Node; >> Last_Allocated : Integer := 0; >> >> function Create return not null access Node is >> begin >> Last_Allocated := Last_Allocated + 1; >> return Nodes_Arena (Last_Allocated)'Access; >> end Create; >> >> This is it an implementation of arena. How can this be disallowed? > > "Each program should > ... > "allocate, walk, and deallocate many bottom-up binary trees > * allocate a tree > * walk the tree nodes, checksum the node items (and maybe deallocate the node) > * deallocate the tree > ... > "Note: these programs are being measured with the default initial heap > size - the measurements may be very different with a larger initial > heap size or GC tuning. I see no contradiction. Tree is allocated. It is deallocated too (when array is destroyed). The stupidity of shootout upheld... > "Please don't implement your own custom memory pool or free list." They seem trying to exclude pool access overhead from the measure, but they have no working idea how. All these "benchmarks" are measuring things having nothing or little to do with the manifested objective. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de