Ask Your Question

Revision history [back]

Dynamically modify references in genpy

Does anyone has any insights on why reference modification is needed in dynamically generated classes?

Was looking at the code here: https://github.com/ros/genpy/blame/kinetic-devel/src/genpy/dynamic.py#L82

I find that generating a dynamic class for a relatively complex type takes over 10 minutes in python 2. All of the overhead is coming from calls to re.sub.