[Dune] [Dune-Commit] dune-common r5258 - trunk/common/test

Markus Blatt Markus.Blatt at ipvs.uni-stuttgart.de
Mon Aug 4 09:02:54 CEST 2008


Hi,

On Sat, Aug 02, 2008 at 10:29:10AM +0200, Martin Nolte wrote:
> you're right, pool allocator seems nearly 20% faster. I think the
> reason is that SmallObject stores the size of the object while pool
> allocator does not need to  (yes, we are talking about writing one
> integer to memory).  

I actually tried it with an additional integer in you sample
class. And in this case the performance gap is even bigger. 

> The question is, can 
> we remove the SmallObjectPool and replace it by your pool allocator?
> This would reduce the amount of doubled code.
> 

IMHO this should be possible. 


Markus




More information about the Dune mailing list