refactor: less #[inline(always)]#26
Conversation
|
Could you change the ones you removed to be normal |
56d9f9c to
3e4c972
Compare
|
Sure. I didn't actually know Rust inlined across crates at all without LTO, it's good to know that #[inline] enables that |
I stumbled over something just now and remembered this PR: This has been changed for 1.75, and is now done automatically for small enough functions. Not saying this should be changed here, but just FYI. |
|
Huh, I had forgotten about that change. Probably worth keeping this for now for users on older Rust versions, since it doesn't hurt to keep around. I also remembered that the reason I put |
Yeah that's fair enough, inlining is critical for those. Maybe that should've been left as-is actually.
Also true. But it might've been better still to just force it. IDK |
It's a bit unnecessary to have inline(always) on getter functions IMHO. The
polyXfunctions are also very small, so a normal inline attribute is enough.