lukecwik edited a comment on pull request #12794: URL: https://github.com/apache/beam/pull/12794#issuecomment-690475810
Reflection might not be that bad enough to warrant an improvement but there is a way to compile code against multiple versions of Kafka using multiple source sets and then at runtime choose which version of the class to use. This would remove a lot of the overhead. Do you see the reflective calls dominating performance in some way? Also, this can always be improved later so unless its bad I wouldn't worry about it. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org