This PR does not introduce any real change, it's just a selective refactor on some parts of the tf2 cache I did back then. It's mainly replacing raw loops with algorithms that one can read and understand what's the code trying to do faster
This also means I didn't embark on a refactoring journey of the entire system. It's just affecting the line of code I was evaluating last year, but I didn't want to avoid contributing to this.
Of course, it would be ideal to refactor more "globally" let's call it but won't have time anytime soon to do this, I'm happy to follow up more reviewing of the implementation in future PRs but for now this is what I can do :)
I tried to be very verbose on a committed level just to make the reviewing process easier
Follow up on https://github.com/ros2/geometry2/pull/636
This PR does not introduce any real change, it's just a selective refactor on some parts of the tf2 cache I did back then. It's mainly replacing raw loops with algorithms that one can read and understand what's the code trying to do faster
This also means I didn't embark on a refactoring journey of the entire system. It's just affecting the line of code I was evaluating last year, but I didn't want to avoid contributing to this.
Of course, it would be ideal to refactor more "globally" let's call it but won't have time anytime soon to do this, I'm happy to follow up more reviewing of the implementation in future PRs but for now this is what I can do :)
I tried to be very verbose on a committed level just to make the reviewing process easier