Re:Making Rust as Fast as Go
by londons_explore on Sunday May 03, 2020 @04:11PM
(#23061500)
NaN's are rarely required on the fast path of any code... The compiler ought to make a 2nd slow implementation for if any NaNs are seen.
[ Parent
| on HN ]
Re:Making Rust as Fast as Go
by fluffything on Sunday May 03, 2020 @04:22PM
(#23061575)
Sure, but then it needs to add a branch to detect the inputs, and maybe keep around some state to switch between implementations at run-time.
Its far from clear that doing that is, in general, worth it.