comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Using local storage pools...
Date: Thu, 24 Feb 2011 11:09:36 +0100
Date: 2011-02-24T11:09:33+01:00	[thread overview]
Message-ID: <1cgjrlknb1yjw.1ekd6t7msma6y$.dlg@40tude.net> (raw)
In-Reply-To: 4d662a37$0$7659$9b4e6d93@newsspool1.arcor-online.net

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..<huge-number>) 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...

> "<strong>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



  reply	other threads:[~2011-02-24 10:09 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23 19:01 Using local storage pools Brian Drummond
2011-02-23 20:42 ` Dmitry A. Kazakov
2011-02-23 23:55   ` Brian Drummond
2011-02-24  9:26     ` Dmitry A. Kazakov
2011-02-24  9:51       ` Georg Bauhaus
2011-02-24 10:09         ` Dmitry A. Kazakov [this message]
2011-02-24 10:39         ` Brian Drummond
2011-02-23 20:51 ` Ludovic Brenta
2011-02-24  0:27   ` Brian Drummond
2011-02-24  8:03     ` Ludovic Brenta
2011-02-24 17:04       ` Brian Drummond
2011-02-24 12:34     ` Robert A Duff
2011-02-23 21:01 ` Simon Wright
2011-02-24  0:00   ` Brian Drummond
2011-02-26  3:02 ` Randy Brukardt
2011-02-26 18:41   ` Pascal Obry
2011-02-26 18:59     ` Pascal Obry
2011-02-26  3:07 ` Randy Brukardt
2011-02-26  8:41 ` anon
2011-02-26 10:42   ` Pascal Obry
2011-02-26 11:41   ` Ludovic Brenta
2011-02-27  4:16     ` anon
2011-02-27  8:18       ` Pascal Obry
2011-02-27 23:46         ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox