|
Proto : |
Subject: Re: [proto] proto performance
From: Eric Niebler (eric_at_[hidden])
Date: 2011-02-20 05:57:38
On 2/20/2011 5:52 PM, Joel Falcou wrote:
> 1/ how do you measure performances ? Anything which is not the median of
> 1-5K runs is meaningless.
You can see how he measures it in the code he posted.
> 2/ Don't use context, transform are usually better optimized by compilers
That really shouldn't matter.
> 3/ are you using gcc on a 64 bits system ? On this configuration a gcc
> bug prevent proto to be inlined.
Naive question: are you actually compiling with optimizations on? -O3
-DNDEBUG? And are you sure the compiler isn't lifting the whole thing
out of the loop, since the computation is the same with each iteration?
-- Eric Niebler BoostPro Computing http://www.boostpro.com
Proto list run by eric at boostpro.com