Boost logo

Boost :

Subject: Re: [boost] lifetime of ranges vs. iterators
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2008-09-04 15:11:36


Michael Marcin wrote:
>
> I ran your attached test on VC9 SP1 default console app release mode
> with _SECURE_SCL=0 on my Core 2 Quad Q6600 2.4Ghz with 4GB of RAM
>
> 50.702 seconds
> 19.984 seconds
> 48.453 seconds
> 13.343 seconds
> 4.313 seconds
> 2.953 seconds
> Press any key to continue . . .
>
> Are these all truly doing the same work?
>

I looked at the generated code to see why the timing were so drastically
different and I realized the compiler wasn't inlining a lot of trivial
functions.

I ran it again after I flipped inline function expansion from default to
Any Suitable

9.297 seconds
5.812 seconds
8.75 seconds
4.688 seconds
2.922 seconds
3.016 seconds
Press any key to continue . . .

Thanks,

Michael Marcin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk