rustc really could do some work on inlining - it seems hell bent on not inlining functions that are only a couple of assembly instructions, resulting in more code (a pile of saves to the stack, and a call) ...
-
Show this thread
-
and the code is obviously slower: saving multiple xmm registers to the stack to call a function that then loads them again, does a couple of instructions, then saves the result to the stack, then returns, whereupon the result is loaded into a register again.
1 reply 0 retweets 0 likesShow this thread -
#[inline(always)] should only be needed very occasionally, yet I'm having to aggressively put it everywhere. Bad compiler. No presents for you.
1 reply 0 retweets 0 likesShow this thread
Replying to @ohunt
Is this cross-crate? Functions don’t get inlined across crates by default…
6:21 PM - 13 May 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.