mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 03:12:13 +00:00
database.hh is a heavyweight include file with a lot of fan-in. auto_refreshing_sharder.hh has a lot of fan out. The combination means a large dependency load. Deinline the class and use forward declarations to avoid the #include. There is no expected performance impact because all the functions are virtual. Ref #1 Note: this shouldn't belong in dht, but be injected by a higher layer, but this isn't addressed by the patch. Closes scylladb/scylladb#21768