Skip to content

Commit

Permalink
feat: change zero copy threshold to 0 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu authored Apr 19, 2023
1 parent b122317 commit 21ce31f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pilota/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pilota"
version = "0.6.0"
version = "0.6.1"
edition = "2021"
description = "Pilota is a thrift and protobuf implementation in pure rust with high performance and extensibility."
documentation = "https://docs.rs/pilota"
Expand Down
2 changes: 1 addition & 1 deletion pilota/src/thrift/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use faststr::FastStr;
pub use self::{binary::TAsyncBinaryProtocol, compact::TAsyncCompactProtocol};

const MAXIMUM_SKIP_DEPTH: i8 = 64;
const ZERO_COPY_THRESHOLD: usize = 4 * 1024; // 4KB
const ZERO_COPY_THRESHOLD: usize = 0; // Change it to 0 to test the performance. Previously it's 4KB.
const INLINE_CAP: usize = 22;

lazy_static::lazy_static! {
Expand Down

0 comments on commit 21ce31f

Please sign in to comment.