@Chris-Kawa said: t by value creates copies and is extremely bad for locality. Passing pointers is optimizer unfriendly. Always prefer a const referenc thanks for the advices! i will start working on it.