masesgroup / KNet

KNet is a comprehensive .NET suite for Apache Kafka™ providing all features: Producer, Consumer, Admin, Streams, Connect, backends (ZooKeeper and Kafka).
https://knet.masesgroup.com/
Apache License 2.0
36 stars 6 forks source link

Reduce resource consumption in classes referring final fields #375

Closed masesdevelopers closed 7 months ago

masesdevelopers commented 7 months ago

The logic done here can be applied to many other classes like the one managed from KNetConsumer e.g. KNetConsumerRecord

_Originally posted by @masesdevelopers in https://github.com/masesgroup/KNet/pull/364#discussion_r1463316460_

masesdevelopers commented 7 months ago

The following line reports an error from the JVM https://github.com/masesgroup/KNet/blob/d368f827681f7e634fe242ded0850fc11ec2b14c/src/net/KNet/Generated/Org/Apache/Kafka/Clients/Consumer/ConsumerRecords.cs#L101 the problem is related to a typo in JNet library: the package of Java.Lang.Iterator is wrong.

masesdevelopers commented 7 months ago

till now closed with #379

masesdevelopers commented 7 months ago

Add some specific behavior to delay deserialization of information when properties are retrieved, e.g. if only key is needed the value deserialization can be avoided reducing resource consumption