From 7209ce3bd8c756e48c29a962d4935911e8c01fb9 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Sun, 25 Feb 2024 21:47:10 -0600 Subject: [PATCH] Dropped unused weight tracking in lfsr_rbyd_appendcompactattr I think at some point we were calculating the compact weight in the initial tag layer, but we don't actually use this at all. We recalculate the weight on every layer of our compaction algorithm anyways. Code changes: before: 33864 2880 after: 33856 (-0.0%) 2880 (+0.0%) --- lfs.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lfs.c b/lfs.c index 170a2aba..5075c0f1 100644 --- a/lfs.c +++ b/lfs.c @@ -3490,10 +3490,6 @@ static int lfsr_rbyd_appendcompactattr(lfs_t *lfs, lfsr_rbyd_t *rbyd, } rbyd->eoff += lfsr_data_size(data); - // keep track of the total weight, the rbyd is in an unusable - // state until lfsr_rbyd_appendcompaction anyways - rbyd->weight += weight; - return 0; }