From 9a1fdb06358da52051e1191bf9bb7a1f16e7fc67 Mon Sep 17 00:00:00 2001 From: "Raphael S. Carvalho" Date: Tue, 4 Jan 2022 14:59:08 -0300 Subject: [PATCH] sstables: stop including unused expensive headers database.hh is expensive to include, and turns out it's no longer needed. also stop including other unused ones. build time of sstables.o reduces by ~3% (cleared all caches and set cpu frequency to a fixed value before building sstables.o from scratch) Signed-off-by: Raphael S. Carvalho Message-Id: <20220104175908.98833-1-raphaelsc@scylladb.com> --- sstables/sstables.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sstables/sstables.cc b/sstables/sstables.cc index aa98f80da9..719b946e32 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include @@ -51,14 +50,10 @@ #include "unimplemented.hh" #include "index_reader.hh" #include "memtable.hh" -#include "range.hh" #include "downsampling.hh" #include #include #include -#include -#include -#include #include #include #include @@ -80,7 +75,6 @@ #include "sstables/sstables_manager.hh" #include "sstables/partition_index_cache.hh" #include "utils/UUID_gen.hh" -#include "database.hh" #include "sstables_manager.hh" #include #include "tracing/traced_file.hh"