Skip to content

Refactor internal object creation - #458

Merged
masesdevelopers merged 1 commit into
masterfrom
455-use-a-more-speedy-approach-instead-of-new
Feb 27, 2026
Merged

masesdevelopers merged 1 commit into
masterfrom
455-use-a-more-speedy-approach-instead-of-new

Conversation

@masesdevelopers

Copy link
Copy Markdown
Collaborator

Description

Make property value parameters nullable (object?[]) in Avro/Protobuf/Default value containers and propagate nullability across related APIs. Replace reflection ConstructorInfo invocations with compiled Expression-based factories for creating TValueContainer and IKafkaRowBag instances in EntityTypeProducer and KafkaTable to reduce reflection overhead and simplify generics. Update IKafkaRowBag and KafkaRowBag to expose typed GetKey/GetValue methods and adapt callers accordingly. Also add minor ownership/field adjustments to align with the new factory-based construction.

Related Issue

close #455

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Make property value parameters nullable (object?[]) in Avro/Protobuf/Default value containers and propagate nullability across related APIs. Replace reflection ConstructorInfo invocations with compiled Expression-based factories for creating TValueContainer and IKafkaRowBag instances in EntityTypeProducer and KafkaTable to reduce reflection overhead and simplify generics. Update IKafkaRowBag and KafkaRowBag to expose typed GetKey/GetValue methods and adapt callers accordingly. Also add minor ownership/field adjustments to align with the new factory-based construction.
@masesdevelopers masesdevelopers self-assigned this Feb 27, 2026
@masesdevelopers masesdevelopers added enhancement New feature or request KEFCore The issue is releated to KEFCore labels Feb 27, 2026
@masesdevelopers masesdevelopers linked an issue Feb 27, 2026 that may be closed by this pull request
@masesdevelopers masesdevelopers added the KEFCore SerDes The issue is releated to KEFCore SerDes label Feb 27, 2026
@masesdevelopers
masesdevelopers merged commit 99a9516 into master Feb 27, 2026
293 of 413 checks passed
@masesdevelopers
masesdevelopers deleted the 455-use-a-more-speedy-approach-instead-of-new branch February 27, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request KEFCore SerDes The issue is releated to KEFCore SerDes KEFCore The issue is releated to KEFCore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use a more speedy approach instead of new

1 participant