Subject: Re: [boost] Proposal for #pragma once support
From: Chandrashekhar Kumar (iitk.cs_at_[hidden])
Date: 2009-06-09 14:29:16


On Tue, Jun 9, 2009 at 11:33 PM, Christopher Jefferson <
chris_at_[hidden]> wrote:

>
> RedundantGuard: 0.130s
> Nothing: 0.170s
> PragmaOnce: 0.710s
>
> So PragmaOnce is over 7 times slower. That time is almost entirely in the
> 'sys' column, so I suspect it querying files to check if they are identical
> or not.
>
> Chris

I got the following timings on my laptop with g++ -c Main.cpp (4.3.2 on
FC10):

PragmaOnce
real 0m0.776so
user 0m0.158s
sys 0m0.227s

Nothing
real 0m0.292s
user 0m0.191s
sys 0m0.040s

RedundantGuard
real 0m0.238s
user 0m0.120s
sys 0m0.038s