29 Jul
2015
29 Jul
'15
10:52 a.m.
Hello, I am facing the following performance issues due to internals of quaternion. abs(q) function is quite slow, and most of the time (according to callgrind) is taken to create valarray which is easily unnecessarily here. valarray requires doing malloc and free, because it is dynamic container, at the same time the size of quaternion is 4 and it is fixed. So, was was the purpose to use std::valarray internally?