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

Improve trienode serialization performance by vendoring postcard #2249

Open
wants to merge 4 commits into
base: albatross
Choose a base branch
from

Conversation

hrxi
Copy link
Contributor

@hrxi hrxi commented Feb 23, 2024

The PR to postcard is unlikely to get merged anytime soon. We could instead vendor postcard and get the performance this way.

Alternative to #2156.

Add a FixedSizeByteArray type that can be used to serialize fixed-size
byte arrays faster than all other available methods. This type only
works with postcard. A more general solution would need to be
implemented in serde itself.

This works around serde-rs/serde#2680.
Use the faster byte array serialization.
@sisou
Copy link
Member

sisou commented Feb 24, 2024

With other forked dependencies we use(d) forked Github repos as the dependency location in the Cargo.toml files, instead of putting the whole code into this repo.

@jsdanielh
Copy link
Contributor

With other forked dependencies we use(d) forked Github repos as the dependency location in the Cargo.toml files, instead of putting the whole code into this repo.

Yeah, I'd second this option instead

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.

None yet

3 participants