Skip to content
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

[Question] colcon list slow ? #565

Open
harleylara opened this issue Jul 31, 2023 · 2 comments
Open

[Question] colcon list slow ? #565

harleylara opened this issue Jul 31, 2023 · 2 comments

Comments

@harleylara
Copy link

I was wondering if colcon list is slow or is it something in my system that makes it slow?... I find it interesting that a workspace with a single empty package takes more than a second to return the list.

user@laptop:~/ros2_ws $ time colcon list
empty_python    src/empty_python        (ros.ament_python)

real    0m1.633s
user    0m0.895s
sys     0m0.229s

Is there anything that can be done about this?.... here is some additional information, thanks 😄

System information:

OS: Ubuntu 20.04.6 LTS
CPU: Intel i7-10750H
Memory: 8GB
ROS distro: Foxy
@cottsay
Copy link
Member

cottsay commented Jul 31, 2023

That's certainly pretty slow.

You might try using a tool like flameprof to figure out which Python functions are taking so long: python3 -m flameprof -o colcon_list.svg -m colcon list

@harleylara
Copy link
Author

it seems to be executing the _find_and_load function multiple times.

colcon_list

I do not know much about the internal architecture of colcon clearly I can not give at this moment a more precise interpretation ... sorry for that 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants