Skip to content

Commit

Permalink
Optimize data (de)serialization in output streaming
Browse files Browse the repository at this point in the history
The bytes were (de)serialized one by one, instead as a byte array.
  • Loading branch information
Kobzol committed Jul 16, 2024
1 parent c563f5b commit 0f100df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/hyperqueue/src/transfer/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub struct DataMsg {
pub task: JobTaskId,
pub instance: InstanceId,
pub channel: ChannelId,
#[serde(with = "serde_bytes")]
pub data: Vec<u8>,
}

Expand Down

0 comments on commit 0f100df

Please sign in to comment.