DataReader - use core::xtypes::DynamicData or topic::Topic<> ?

2 posts / 0 new
Last post
Offline
Last seen: 4 years 8 months ago
Joined: 08/25/2015
Posts: 32
DataReader - use core::xtypes::DynamicData or topic::Topic<> ?

Hi,

Regarding performance - what's the better way: Use core::xtypes::DynamicData or topic::Topic<> ? Is maybe topic::Topic<> internally handled like a dynamic type?

Gerardo Pardo's picture
Offline
Last seen: 1 week 2 days ago
Joined: 06/02/2010
Posts: 602

Hi,

No, topic::Topic<Foo> does not use dynamic data internally. It requires code-generation for type Foo. The performance of serialization and de-serialization of the data using topic::Topic<Foo> is significantly better than when using dynamic data.

Gerardo