> Otherwise, I will benchmark this, but unfortunately this will take some time
Yes, you really should do that, it may help you to understand that your questions make not that much sense -- asking here and in stackoverflow at the same time make it not really better. Mratsim gave you a very good answer already -- and in case you do not know already, he is one of the brightest Nim devs. You may use criterion package for you benchmark, see [https://forum.nim-lang.org/t/4142](https://forum.nim-lang.org/t/4142) Don't forget to compile your test in release mode with option -d:release After testing yourself, you may post your concrete Nin code here, maybe some experts can give you more tips to improve performance. With some luck the compilers can apply SIMD instructions, which may boost performance. Or operations can be done in parallel.
