-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ament_pack_build_configuration is very slow for many dependencies #480
Comments
Does replacing |
Yes |
See #447 (comment) and #448 |
Closing as completed by #448 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When targets with many dependencies call
ament_target_dependencies
, this callsament_deduplicate_libraries
and thenament_pack_build_configuration
. For some reasonament_pack_build_configuration
takes several seconds for a moderate number of libraries.For two libraries, it takes 250ms (which is still kind of slow), but this ends up being the minority of the work done under

ament_target_dependencies
:However, when you have 3632 dependencies (which seems like a lot but which is mostly separate type support libraries just from linking to Nav2) it takes 1.2 seconds. which then becomes the majority of the time of

ament_target_dependencies
It looks like the bulk of that time comes from all the calls to
for every single element, and that access takes 0.315ms, but that addes up over a lot of dependencies.
When building packages, this adds several seconds to the build time, just to add semicolons between library names.
This is on humble with ament_cmake 1.3.5.
The text was updated successfully, but these errors were encountered: