You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/12/08 23:00:10 UTC

[GitHub] merlimat opened a new pull request #3146: Use raw message when manually parsing messages from topic storage

merlimat opened a new pull request #3146: Use raw message when manually parsing messages from topic storage
URL: https://github.com/apache/pulsar/pull/3146
 
 
   ### Motivation
   
   Use "raw" message interface when reading messages directly from storage.
   
   The regular `Message` interface exposes only a `byte[]` with the payload and it was meant to be simple. Eg. there is no ref-counting for messages. 
   
   When we are reading from storage directly, we need to take advantage that buffers are coming from direct memory and are already pooled. This will allow to avoid all memory copies and many objects allocation by exposing a lower level message interface, on which the users will need to explicitly call release.
   
   Note: this is a step-gap solution until we have more comprehensive and encapsulated API for direct storage access.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services