3 ms·
TSMT Fingers crossed that the upcoming Valhalla project can improve the situation w.r.t. number of allocations. I've noticed a general trend where languages w
by PhilipRoman 3y ago
TSMT
Fingers crossed that the upcoming Valhalla project can improve the situation w.r.t. number of allocations.
I've noticed a general trend where languages without support for proper compile time metaprogramming (and the corresponding optimizations) often create uglier code (despite being higher level) to avoid the performance hit. For example the mutable Vec2D type in various physics related libraries.
Last time I tested it was still faster to implement various string operations using Unsafe, than with standard APIs. I want to be able to trust my compiler/JIT.