4 ms·
In many cases the functions being constified were already evaluated during compilation where possible though, the compile time cost was already sunk. Making th
by jsheard 6y ago
In many cases the functions being constified were already evaluated during compilation where possible though, the compile time cost was already sunk.
Making them const just formally guarantees the compiler can evaluate them at compile time which makes them useful in more contexts.
- pjmlp 6y ago"constexpr of all things" kind of proves the point in compile times, and so far Rust isn't fairing much better in that regard.