GitHub user NicoK opened a pull request:

    https://github.com/apache/flink/pull/2806

    [FLINK-5066] Prevent LocalInputChannel#getNextBuffer from de-serialising 
all events when looking for EndOfPartitionEvent only

    LocalInputChannel#getNextBuffer de-serialises all incoming events on the 
lookout for an EndOfPartitionEvent.
    
    Instead, add EventSerializer.isEvent so that LocalInputChannel can peak 
into event buffers without de-serialising the whole event, we could save some 
resources. This is a generic isEvent implementation for any event that 
fromSerializedEvent currently supports. Alternatively, a specialised method 
could be implemented looking for EndOfPartitionEvent only, if desired.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/NicoK/flink FLINK-5066

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/2806.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2806
    
----
commit bf394e8f9ab18991f29942f3017ecc04643ce224
Author: Nico Kruber <[email protected]>
Date:   2016-11-14T19:02:54Z

    [FLINK-5066] add EventSerializer.isEvent so that LocalInputChannel can peak 
into event buffers

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to