Implement our own zero-copy list type and get rid of bincoding
Closed this issue · 0 comments
github-actions commented
To support nested content, would require an offsets table at the front, etc.
Take a look at how flatbufers, capnproto, and other zero-copy serialization formats do this.
moor/crates/values/src/var/list.rs
Line 27 in 47435a1
#[derive(Clone, Debug, Encode, Decode, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct List {
// TODO: Implement our own zero-copy list type and get rid of bincoding
// To support nested content, would require an offsets table at the front, etc.
// Take a look at how flatbufers, capnproto, and other zero-copy serialization formats do this.
inner: Arc<Vec<Var>>,