Skip visiting fast-vapis in the code generator when not writing a header
file. For builds with a very large number of fast-vapi files this can
reduce compile time by more than 50%.
/* we're only interested in non-pkg source files */
var source_files = context.get_source_files ();
foreach (SourceFile file in source_files) {
- if (file.file_type != SourceFileType.PACKAGE) {
+ if (file.file_type == SourceFileType.SOURCE ||
+ (context.header_filename != null && file.file_type == SourceFileType.FAST)) {
file.accept (this);
}
}