Skip to content

Conversation

@YuanYuYuan
Copy link

@YuanYuYuan YuanYuYuan commented Sep 10, 2025

Hello!

With this PR, users can call deserialize_byte_buf with bulk read for messages defined like this.

#[derive(Debug, Serialize, Deserialize, Default, Clone)]
pub struct ByteMultiArray {
    pub layout: MultiArrayLayout,
    #[serde(with = "serde_bytes")]
    pub data: Vec<u8>,
}

This saves a lot of CPU usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant