This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: #import, #pragma once yadda yadda mumble grumble
Geoff Keating wrote:-
> It's actually pretty cheap---it doesn't even make it into the top 10
> items in the profile of GCC building a PCH. Header files just aren't
> that big.
>
> I think if that is the main objection, I should produce a patch and we
> can see just how expensive it is.
My point is it's non-zero, and quite significantly non-zero. I
sometimes wonder why I bother trying to speed anything in GCC when
others take the line that scanning every header is cheap. Headers are
the majority of the lines of a typical translation unit.
Why should I pay that so some #import user is happy? I've got it so
we have #import working at zero cost to non-users. We should keep it
that way.
Neil.