Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use memcpy instead of std::copy when bridging images (#565)
While testing ros <-> gz communication using the bridge I noticed that the bridge was talking quite a bit of time copying images from Gazebo to ROS. I found that the std::copy operation that we're doing is substantially slower than the memcpy alternative. I think that in principle this shouldn't happen but the numbers are quite clear. Perhaps std::copy is doing something that doesn't use cache effectively --------- Signed-off-by: Carlos Agüero <[email protected]> Signed-off-by: Carlos Agüero <[email protected]> Co-authored-by: Jose Luis Rivero <[email protected]>
- Loading branch information