From 66618cd869d2ac95467d0eb7aaff2ff4eecc8360 Mon Sep 17 00:00:00 2001 From: Yaniv Michael Kaul Date: Fri, 17 Apr 2026 08:47:22 +0300 Subject: [PATCH] pch: expand precompiled header with more high-impact Scylla headers Add to stdafx.hh: locator/token_metadata.hh, gms/gossiper.hh, db/system_keyspace.hh, service/topology_state_machine.hh, cql3/query_options.hh, service/client_state.hh, cql3/query_processor.hh, db/config.hh, service/storage_proxy.hh, schema/schema_builder.hh, exceptions/exceptions.hh, gms/feature_service.hh, service/migration_manager.hh, sstables/sstables.hh, service/storage_service.hh, transport/messages/result_message.hh. These headers are included by 40-140 translation units each. Adding them to the PCH avoids redundant parsing across the build. Combined with the previous PCH commit, clean dev build time drops from 22m33s to ~14m23s (-36.2%). --- stdafx.hh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/stdafx.hh b/stdafx.hh index 639a699fd4..9ad49eb888 100644 --- a/stdafx.hh +++ b/stdafx.hh @@ -422,5 +422,21 @@ #include "gc_clock.hh" #include "locator/token_metadata_fwd.hh" #include "locator/types.hh" +#include "locator/token_metadata.hh" +#include "gms/gossiper.hh" +#include "db/system_keyspace.hh" +#include "service/topology_state_machine.hh" +#include "cql3/query_options.hh" +#include "service/client_state.hh" +#include "cql3/query_processor.hh" +#include "db/config.hh" +#include "service/storage_proxy.hh" +#include "schema/schema_builder.hh" +#include "exceptions/exceptions.hh" +#include "gms/feature_service.hh" +#include "service/migration_manager.hh" +#include "sstables/sstables.hh" +#include "service/storage_service.hh" +#include "transport/messages/result_message.hh" #endif