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

Replace derive feature on serde with a separate serde_derive dependency #37

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

pr2502
Copy link
Owner

@pr2502 pr2502 commented Aug 25, 2023

Serde past 1.0.184 doesn't have the binary blob anymore so it's safe to upgrade.

During the discussion about the binary blob it was pointed out serde-rs/serde#2584 that the feature = ["derive"] on serde dependency causes a very long critical chain in the compilation causing a slowdown. I tried disabling the feature and including serde_derive.

On an 8 core CPU this was a huge boost. On my system the --release build time went from 21.8 seconds to just 8.7 seconds!

Before:
before

After:
after

long timings graphs

Before:
before-chain

After:
after-chain

@pr2502 pr2502 merged commit ed4847f into main Aug 25, 2023
@pr2502 pr2502 deleted the opt/serde-derive-crate branch August 25, 2023 12:52
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.

1 participant