You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kenneth Knowles (Jira)" <ji...@apache.org> on 2021/01/19 11:41:00 UTC

[jira] [Updated] (BEAM-11657) Kafka read performance regression due to added header support

     [ https://issues.apache.org/jira/browse/BEAM-11657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth Knowles updated BEAM-11657:
-----------------------------------
    Status: Open  (was: Triage Needed)

> Kafka read performance regression due to added header support
> -------------------------------------------------------------
>
>                 Key: BEAM-11657
>                 URL: https://issues.apache.org/jira/browse/BEAM-11657
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-kafka
>            Reporter: Sam Whittle
>            Assignee: Sam Whittle
>            Priority: P2
>
> Support for headers in KafkaIO reads was recently added:
> https://issues.apache.org/jira/browse/BEAM-10865
> This introduced several reflection calls into the path of advancing KafkaUnboundedReader.  While separately running benchmarks, I noticed this regression.  
> Calls currently come from:
> ConsumerSpEL.hasHeaders -> can be cached similar to other booleans
> deserialize key and value methods -> could be avoided in cases where headers are not being examined (at a minimum can be avoided for known coders like ByteArrayDeserializer)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)