Github user mxm commented on the pull request: https://github.com/apache/flink/pull/290#issuecomment-69723062 @uce `DataInputDeserializer.setBuffer(ByteBuffer)` doesn't seem relevent for this pull request. The check for the direct byte buffer is not necessary since it is always called with ByteBuffers allocated from heap memory. These buffers are relatively small sized and probably much quicker allocated on the JVM heap than outside.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---