IBMStreams / streamsx.kafka

Repository for integration with Apache Kafka
https://ibmstreams.github.io/streamsx.kafka/
Apache License 2.0
13 stars 9 forks source link

KafkaConsumer: assign output attributes via index rather than attribute name #203

Closed ghost closed 4 years ago

ghost commented 4 years ago

Output attribute assignment is done solely via name. This adds overhead of calculating the hash from the attribute name and hash lookup for each output attribute for each submitted tuple. Determining the attribute index once in initialize() and assign attributes via index would be more performant.

https://github.com/IBMStreams/streamsx.kafka/blob/d92513cdd74a86a186074dc8d2d18148735e04e8/com.ibm.streamsx.kafka/impl/java/src/com/ibm/streamsx/kafka/operators/AbstractKafkaConsumerOperator.java#L1029

ghost commented 4 years ago

Resolved with release 3.0.4