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

Fast path for quote with default span #159

Merged
merged 1 commit into from
Jun 7, 2020
Merged

Fast path for quote with default span #159

merged 1 commit into from
Jun 7, 2020

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jun 7, 2020

When using quote! and not quote_spanned!, we can avoid passing around a Span value to everywhere.

This improves the compile time of cargo clean -p serde_derive && time cargo build by 9% on my machine, without measurably affecting the compile time of this crate.

@dtolnay dtolnay merged commit e50913e into master Jun 7, 2020
@dtolnay dtolnay deleted the nospan branch June 7, 2020 17: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