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/10 19:57:42 UTC
[GitHub] merlimat opened a new pull request #3157: Refactored
PulsarRecordCursor to avoid intermediate thread
merlimat opened a new pull request #3157: Refactored PulsarRecordCursor to avoid intermediate thread
URL: https://github.com/apache/pulsar/pull/3157
### Motivation
Refactor the `PulsarRecordCursor` to avoid intermediate thread to deserialize the batch into messages. Instead, trigger that directly from the Presto split thread.
This has few advantages:
* Less context switches in the data path
* Less number of objects active: just break down 1 single batch at a time.
* Object for individual messages are requested and released to pool from a single thread, leading to more efficient pooling.
----------------------------------------------------------------
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