chore(db_lookup_times): Modify benchmarks to use TableBlueprint
to avoid manual serde
#2169
Labels
tech-debt
The issue is to improve the current code and make it more clear/generic/reusable/pretty/avoidable.
In #2142 we introduced benchmarks that were not too clean, and part of the rework has been addressed in -
The last part of the rework involves implementing
TableWithBlueprint
~fuel-core/crates/storage/src/structured_storage.rs
Lines 74 to 82 in f5240cb
for the custom columns we have defined in the benchmarks ~
fuel-core/benches/src/db_lookup_times_utils/full_block_table.rs
Lines 18 to 25 in e09f9f1
so that we can use
KeyValueInspect
andKeyValueMutate
storage traits ~fuel-core/crates/storage/src/kv_store.rs
Lines 49 to 90 in f5240cb
fuel-core/crates/storage/src/kv_store.rs
Lines 127 to 167 in f5240cb
to get/put data from the tables in batches without doing manual serde.
It is suggested to use
Plain<Primitive<4>, Postcard>
for the Blueprint associated type in the impls ofTableWithBlueprint
The text was updated successfully, but these errors were encountered: