[cfe-dev] Speed up debug version of LibTooling AST parsing

Jan Ryšavý via cfe-dev cfe-dev at lists.llvm.org
Mon Feb 17 01:18:32 PST 2020


We are using Clang LibTooling for source-to-source conversion. Size of converted headers is around 10MB.

Release version of our conversion utility works fine, but debug version is spending 20 seconds in clang::ParseAST.

Is there any chance how to speed up parsing, for example using precompiled headers (or storing parsed AST)?

Could you please point me in the right direction?

Best regards
Jan Rysavy


More information about the cfe-dev mailing list