Skip to content

Conversation

paolobarbolini
Copy link

serde_core has just been released. Crates that don't depend on serde derive macros should use it instead of serde, as it speeds up compile times by having the build for the crate itself be independent from serde-derive (in case it were to be enabled by some other crate). See the serde_core docs for more info.

On my Ryzen 5 5500U, the clean release build time for just smallvec in a project containing smallvec with the serde feature enabled, and serde with the derive feature enabled, went from 4.61s to 2.34s.

Copy link
Contributor

@nicoburns nicoburns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't think of any reason why this wouldn't be fine.

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