Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch from serde_json to postcard #3170

Merged
merged 3 commits into from
Apr 28, 2023
Merged

switch from serde_json to postcard #3170

merged 3 commits into from
Apr 28, 2023

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Apr 12, 2023

switch to postcard for better datastructure support when sending intermediate results between nodes

Percentiles aggregation is broken currently. This fixes that

@PSeitz PSeitz force-pushed the update_tan branch 4 times, most recently from d0ae9eb to 531602d Compare April 13, 2023 00:17
@PSeitz PSeitz requested a review from fulmicoton April 13, 2023 02:54
@PSeitz PSeitz changed the title switch from json to ciborium switch from serde_json to ciborium Apr 13, 2023
@PSeitz PSeitz force-pushed the update_tan branch 2 times, most recently from 3b7dc58 to 93586b2 Compare April 24, 2023 10:02
quickwit/Cargo.lock Outdated Show resolved Hide resolved
@PSeitz PSeitz force-pushed the update_tan branch 2 times, most recently from f33515d to 0e079a3 Compare April 25, 2023 08:01
switch to postcard for better datastructure support when sending intermediate results between nodes
@PSeitz PSeitz changed the title switch from serde_json to ciborium switch from serde_json to postcard Apr 27, 2023
@PSeitz PSeitz merged commit cbaa65a into main Apr 28, 2023
@PSeitz PSeitz deleted the update_tan branch April 28, 2023 05:54
pub intermediate_aggregation_result: ::core::option::Option<
::prost::alloc::string::String,
::prost::alloc::vec::Vec<u8>,
Copy link
Member

@guilload guilload Apr 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use Bytes. It's better because it's cheaply cloneable. It makes a difference when coupled with some retry logic that potentially copies the same request multiple times.

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.

3 participants