Closed campreilly closed 1 year ago
It appears that BOOST_UBLAS_MOVE_SEMANTICS can improve speed. Experimenting with this on test_move_semantic branch 9dc5c8d389ecb07c26eb1ef6c4857e66feddbf4d.
On the C++17 build, the new times are 2.779 sec for 100 target in cmp_speed. Just 2.314 with move semantics turned on. A 17% improvment.
Copy elison allows the compiler to automatically optimize out unnecessary copy operations on rvalues.
see