Ask Your Question
7

Why is Groovy's rosmake so slow?

asked 2013-02-07 11:07:48 -0500

Pi Robot gravatar image

updated 2013-02-07 11:08:05 -0500

Hello,

After upgrading from Fuerte to Groovy (debian packages under Ubuntu 12.04) I have found rosmake runs much slower than it used to. For example, for one of my typical stacks including 7 packages and mostly Python code, rosmake takes 7.9 seconds under Fuerte and 149 seconds (2 min 29 sec) under Groovy. That's 18x slower(!). Is this expected?

Thanks,
patrick

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
4

answered 2013-02-07 19:28:31 -0500

I guess groovy's rosmake is so slow because rospack is so slow now. This is also the topic of this Q/A. Would of course be very interesting if any improvements are planned as this affects a lot of people.

edit flag offensive delete link more

Comments

Thanks @Stefan Kohlbrecher. I didn't see a ticket on this problem so I logged one here: https://github.com/ros/rosdep/issues/218

Pi Robot gravatar imagePi Robot ( 2013-02-09 02:36:39 -0500 )edit

A recent patch has greatly improved rosmake performance for my test package under Groovy--from 149 seconds to 22 seconds. Thanks @tfoote and the author of the patch!

Pi Robot gravatar imagePi Robot ( 2013-02-20 02:45:22 -0500 )edit
2

answered 2013-03-05 03:05:38 -0500

I confirm the patch mentioned above also worked for us, reduced the compilation time of almost empty packages by a factor of almost 5. For the lazy, here is the list of instructions to install it.

sudo apt-get install python-jsonpickle --yes
cd /usr/share/pyshared/rosdep2/ 
sudo rm sources_list.py 
sudo wget https://raw.github.com/ros/rosdep/b0aaeb0fd1e12c6e857d7ebe1785c61f90df5a5a/src/rosdep2/sources_list.py 
rosdep update  
rosmake <package>
edit flag offensive delete link more

Comments

On my system the source_list.py file that rosdep uses is located in /usr/local/lib/python2.7/dist-packages/rosdep2 , instead of the directory specified (ubuntu 12.04, installed from debian package) The patch improved things a bit but is I think still quite slow compared to fuerte or catkin

afourast gravatar imageafourast ( 2013-03-25 07:27:40 -0500 )edit
0

answered 2013-02-19 04:46:53 -0500

Dave Coleman gravatar image

A fix for this would be to move to the new catkin build system - it is faster than the original rosbuild. I believe rosbuild is slow now because it has been "patched" to work along side catkin, but eventually it will be depreciated - if I understand correctly.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-02-07 11:07:48 -0500

Seen: 571 times

Last updated: Mar 05 '13