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
When enableing TypeObject generation via the -typeobject option, the standard constructor of every Type calls the registerTYPENAMETypes() function. When a Type contains other Types as members, using the move constructor also results in their base constructors beeing used, as no initializer list is provided. The subsequent calls to the register... function slow down the move operation significantly.
To my understanding this also affects the copy constructor.
Example code generated by current template: SmallExample.cxx
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Proposal:
Contribution:
gDorndorf/Fast-DDS-Gen@7cdadcc
Currently i only adapted the move constructor template as my understanding of
copy_move()
(TypesSource.stg) is limited.Reason:
When enableing TypeObject generation via the
-typeobject
option, the standard constructor of every Type calls theregisterTYPENAMETypes()
function. When a Type contains other Types as members, using the move constructor also results in their base constructors beeing used, as no initializer list is provided. The subsequent calls to theregister...
function slow down the move operation significantly.To my understanding this also affects the copy constructor.
Example code generated by current template:
SmallExample.cxx
SmallExample.h
Example code generated with updated template:
SmallExample.cxx
SmallExample.h remains unchanged.
SmallExample.idl.gz
SomeType.idl.gz
Thank you for your time and development of the Fast-DDS libraries.
Beta Was this translation helpful? Give feedback.
All reactions