From 42cb6e2b446a2879cf9bf2f4642f926c15584cb3 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Wed, 17 Sep 2025 18:27:56 -0400 Subject: Beginnings of per-level cost modeling The total time required for each shard construction is now measured, and hooks have been added to InternalLevel to support the creation and use of per-level cost models. The appropriate calls to these functions are now made during reconstruction, but the scheduling process doesn't yet call them, nor are the models actually implemented. --- include/framework/DynamicExtension.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/framework/DynamicExtension.h') diff --git a/include/framework/DynamicExtension.h b/include/framework/DynamicExtension.h index 48e270d..5917475 100644 --- a/include/framework/DynamicExtension.h +++ b/include/framework/DynamicExtension.h @@ -604,10 +604,8 @@ private: /* apply our updates to the copied structure (adding/removing shards) */ for (auto recon : reconstructions) { - auto grow = args->version->get_mutable_structure()->append_shard( - recon.new_shard, args->version->get_id(), recon.target_level); - args->version->get_mutable_structure()->delete_shards( - recon.source_shards); + auto grow = args->version->get_mutable_structure()->apply_reconstruction( + recon, args->version->get_id()); if (grow) { extension->m_lock_mngr.add_lock(); } -- cgit v1.2.3