Closed koonpeng closed 3 years ago
When in a path that has ament executed, use the ament index to obtain a list of ros definition files instead of recursively scanning the directory.
This improves the message generation speed, on my pc, i get
old find packages
real 0m6.069s user 0m13.387s sys 0m3.757s
using ament index
real 0m2.189s user 0m13.449s sys 0m3.722s
Wow, that accelerates a lot!
Coverage remained the same at 91.268% when pulling 0a62ecfba0cd611ff99b5fba6843d5024e32546b on get-packages-from-ament-index into ba3b0191471cd3fc3e87de7ef8cffa99f803b1c7 on develop.
When in a path that has ament executed, use the ament index to obtain a list of ros definition files instead of recursively scanning the directory.
This improves the message generation speed, on my pc, i get
old find packages
using ament index