You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where do the "debug", "optimized" and "general" come from? There are several places where ament macros check whether these keywords exist, but they don't seem to be introduced by ament. Is this some obscure CMake feature? As I check into a few inputs, I can't find any of these keyword.
If I understand ament_libraries_pack_build_configuration code correctly, the function parses inputs like libA;libB;debug;libC;libD into libA;libB;debug:libC;libD. Is that correct? If yes, isn't the code overly complex? Wouldn't a simple regex do the job (and way faster?). The unpack function code seems to exactly do that, but does the REGEX REPLACE in a loop (which is not necessary?)
In the main loop of ament_libraries_deduplicate here:
Hi!
I have a few questions as I inspect a few cmake traces, and see that a big share of
find_package()
time is spent inament_libraries_deduplicate
:ament_cmake/ament_cmake_libraries/cmake/ament_libraries_pack_build_configuration.cmake
Line 33 in 154f198
Where do the "debug", "optimized" and "general" come from? There are several places where ament macros check whether these keywords exist, but they don't seem to be introduced by ament. Is this some obscure CMake feature? As I check into a few inputs, I can't find any of these keyword.
If I understand
ament_libraries_pack_build_configuration
code correctly, the function parses inputs likelibA;libB;debug;libC;libD
intolibA;libB;debug:libC;libD
. Is that correct? If yes, isn't the code overly complex? Wouldn't a simple regex do the job (and way faster?). The unpack function code seems to exactly do that, but does theREGEX REPLACE
in a loop (which is not necessary?)In the main loop of
ament_libraries_deduplicate
here:ament_cmake/ament_cmake_libraries/cmake/ament_libraries_deduplicate.cmake
Lines 31 to 36 in 154f198
It seems to me the code could be faster written like this (without loop):
The text was updated successfully, but these errors were encountered: