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%)
This commit is contained in:
Christopher Haster
2024-02-25 21:47:10 -06:00
parent ea88a48de2
commit 7209ce3bd8
-4
View File
@@ -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;
}