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

Add inline attributes to generated code #191

Open
appetrosyan opened this issue May 26, 2022 · 1 comment
Open

Add inline attributes to generated code #191

appetrosyan opened this issue May 26, 2022 · 1 comment

Comments

@appetrosyan
Copy link

Simple constructors and a few other functions are normally never complex (they generate few lines of assembly). Marking those as inline can greatly improve performance for if they are used outside the crate.

Adding inline could greatly improve the performance of libraries that derive_more.

@JelteF
Copy link
Owner

JelteF commented May 26, 2022

Afaik this is already done for all derives that are not a trait implementation (like the Constructor derive). If you find one without feel free to make a PR.

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

No branches or pull requests

2 participants