4 ms·
Using the unsafe keyword... somehow makes me wonder where else unsafe is used...
by shrubble 3y ago
Using the unsafe keyword... somehow makes me wonder where else unsafe is used...
- samus 3y agoIn this case, it actually didn't bring this much speedup. The program would have been plenty fast even without.
- deleted 3y ago[deleted]
- tgv 3y agoOnly to remove a bounds check that's guaranteed to be unneeded (well, that's what the author says, but it's not unbelievable).
- yxhuvud 3y agoWe don't even know it still would be relevant after the simd step.
- throwaway5959 3y agoNothing wrong with using unsafe if performance is essential and it’s wrapped up with good testing and kept safely tucked away in a library.