Skip to content

Use bytes::Bytes as underlying representation for bytes value #317

@badmonster0

Description

@badmonster0

Currently we're using Arc[u8] for bytes.

Crate bytes provides a more flexible and efficient way to represent bytes (e.g. if we want a slice of it, we don't need to make a copy). It's widely used by other libraries. We need to do a conversion to interchange with them, e.g. conversion for neo4rs:

BoltType::Bytes(neo4rs::BoltBytes::new(bytes::Bytes::from_owner(v.clone())))

We want to switch to use bytes::Bytes for cocoindex's values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions