https://slatedb.io logo
Add flatbuffers
# general
v
I am in the process of adding flatbuffers for BlockMeta and SsTableInfo. Not quite ready for PR yet. I need to fix few things related to lifetime.
c
Awesome! Thanks for the update. Was just about to check in 😃
v
I added flat buffers for 2 objects, but this doesn't compile yet. https://github.com/slatedb/slatedb/tree/vigneshc/switch_to_flat_buffers flatbuffer objects require lifetime, and this meant propagating it to several places. I think this fails because, flat buffer builder doesn't live long enough, and SstInfo object refers to the buffer owned by flat buffer builder. I have also tried passing in the flat buffer builder from the calling function, this created other issues, also related to lifetime. With this, I am not sure if I am completely off track. I am stuck , sharing the branch in its current state.
@criccomini responding here. I couldn't spend more time after above.
c
Sorry I didn’t see the stuck part!
cc @paulnyc , resident Rust expert 😅
Lemme poke at it a bit..
p
I have an idea here, opened a PR on top of @Vignesh's branch: https://github.com/slatedb/slatedb/pull/57