Skip to content

Conversation

adampetro
Copy link
Contributor

ryu is used by serde_json, so we are already including the f64 serialization logic in our binaries. Replacing the Decimal implementation of Into<String> to make use of ryu means that we can save ~20KB in binary size.

The example on main: 165KB
The example on this branch: 142KB

@adampetro adampetro requested a review from jbourassa May 7, 2024 00:23
@adampetro adampetro merged commit 9ab7407 into main May 7, 2024
@adampetro adampetro deleted the ap.decimal-ryu branch May 7, 2024 13:14
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.

2 participants