radai rosenblatt created KAFKA-9855:
---------------------------------------

             Summary: dont waste memory allocating Struct and values objects 
for Schemas with no fields
                 Key: KAFKA-9855
                 URL: https://issues.apache.org/jira/browse/KAFKA-9855
             Project: Kafka
          Issue Type: Improvement
          Components: core
    Affects Versions: 2.4.1, 2.4.0
            Reporter: radai rosenblatt
            Assignee: radai rosenblatt


at the time of this writing there are 6 schemas in kafka APIs with no fields - 
3 versions each of LIST_GROUPS and API_VERSIONS.

under some workloads this may result in the creation of a lot of Struct objects 
with an Object[0] for values when deserializing those requests from the wire.

in one particular heap dump we've found a significant amount of heap space 
wasted on creating such objects.



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

Reply via email to