ros_comm icon indicating copy to clipboard operation
ros_comm copied to clipboard

Improve performance of ShapeShifter::read()

Open arneboe opened this issue 4 years ago • 0 comments

using resize causes an unnecessary call to memset. Replacing it with insert mitigates that. Especially when handling lots of large messages (e.g. images) the overhead caused by memset is substantial. This results in ~30% improved performance in my use-case.

arneboe avatar Nov 03 '21 13:11 arneboe