derive_more icon indicating copy to clipboard operation
derive_more copied to clipboard

Add inline attributes to generated code

Open appetrosyan opened this issue 3 years ago • 1 comments

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.

appetrosyan avatar May 26 '22 09:05 appetrosyan

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.

JelteF avatar May 26 '22 09:05 JelteF