eclipse-zenoh / zenoh-pico

Eclipse zenoh for pico devices
Other
102 stars 65 forks source link

Remove extra recopy when decoding messages. #482

Closed jean-roland closed 2 weeks ago

jean-roland commented 3 weeks ago

Describe the feature

For example, when decoding messages we allocate a _z_encoding_t, if needed, which is stored in a _z_msg_put_t. Which then will be copied and stored in a _z_query_t / _z_reply_t / _z_sample_t. Where it could have been simply moved.

The problem might exist for keyexpr/payload/other data containers.