3 ms·
> * Note that in these examples we have to use inline(never) to defeat the optimizer. Without this it would turn these simple examples into the exact same machi
by ed25519FUUU 6y ago
> * Note that in these examples we have to use inline(never) to defeat the optimizer. Without this it would turn these simple examples into the exact same machine code. I'll explore this phenomenon further in a future episode of this series.*
I’m really eager to use more rust, but three optimizations really turn me off. Optimizing the compiler feels like meta programming.
- prerok 6y agoWhat do you mean? I think that these statements are there only so that the author can provide a glimpse into the difference of code generation between the two examples. You would not want to disable it when writing code for an actual project.