Great discovery, Davide! Could you elaborate shortly on what does the improvement lie in?

I’ll also add a link to a relevant piece of information - pcl::toPclPointCloud2 and pcl::toROSMsg keep the alignment bytes introduced by the PCL library to make memory operations faster. But inflating the message size might decrease preformance elsewhere…