Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

DO NOT MERGE: Borsh vs bincode numbers #3064

Closed
wants to merge 1 commit into from

Conversation

joncinque
Copy link
Contributor

Problem

The advantages of Borsh over bincode aren't documented anywhere with real numbers.

Solution

Provide one example of deserializing a stake account with borsh vs bincode. The difference is really staggering! bincode takes up almost 10x compute units for one account deserialization, and that doesn't include the overhead for making the instruction call.

@joncinque joncinque closed this Apr 27, 2022
@joncinque joncinque deleted the borsh-vs-bin branch April 27, 2022 11:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant