The StringTree inside ROSTypeFlat is updated every time the BuildRosFlatType is called. Actually it is unique for any kind of messagesm, therefore there is no reason to build it every time.
Move the creation of that StringTree into BuildROSTypeMapFromDefinition
The StringTree inside ROSTypeFlat is updated every time the BuildRosFlatType is called. Actually it is unique for any kind of messagesm, therefore there is no reason to build it every time.
Move the creation of that StringTree into BuildROSTypeMapFromDefinition