[cfe-commits] r54794 - in /cfe/trunk: include/clang/Lex/Token.h include/clang/Parse/Parser.h lib/Lex/Lexer.cpp lib/Parse/Parser.cpp lib/Sema/Sema.cpp lib/Sema/Sema.h lib/Sema/SemaExpr.cpp lib/Sema/SemaExprObjC.cpp
daniel at zuster.org
Sat Aug 23 18:49:49 PDT 2008
> Yeah, good point, nevermind :) One thing that Neil has pointed out is
> that the startup time of clang is significantly more than it really
> should be. We've made progress on this, but I don't have a really
> have a good handle on where the startup time is going now and how to
> improve it.
A few minor data points:
On a C file of 'int x;', and running a Release-Asserts clang 1000 times
with just 'clang file.c' (i.e. -fsyntax-only).
With 'return 0;' after parsing arguments:
With 'return 0;' at top of main:
And for reference, 1000 times running 'true' on my system:
So it looks like the premain amount of overhead is pretty high compared
to the actual work we do. Static constructors aren't free?
More information about the cfe-commits