campreilly / UnderSeaModelingLibrary

The Under Sea Modeling Library (USML) is a collection of C++ software development modules for sonar modeling and simulation.
Other
45 stars 22 forks source link

Use BOOST_UBLAS_MOVE_SEMANTICS to improve execution speed #17

Closed campreilly closed 1 year ago

campreilly commented 12 years ago

Copy elison allows the compiler to automatically optimize out unnecessary copy operations on rvalues.

see

campreilly commented 9 years ago

It appears that BOOST_UBLAS_MOVE_SEMANTICS can improve speed. Experimenting with this on test_move_semantic branch 9dc5c8d389ecb07c26eb1ef6c4857e66feddbf4d.

campreilly commented 1 year ago

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.