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

2 posts / 0 new
Last post
Offline
Last seen: 5 months 2 weeks 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: 3 weeks 1 day ago
Joined: 06/02/2010
Posts: 594

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