Skip to content

Conversation

@yuzawa-san
Copy link
Contributor

i was profiling kafka-connect when i found a small hotspot related to iterating over the fields. i believe the solution was to not use the iterator.

here is the flamechart for cpu where i found this (the blue specifically):

image

inset:

image

i am independently trying to optimize the schema-registry library as well.

@github-actions github-actions bot added triage PRs from the community connect small Small PRs labels Jan 11, 2026
@yuzawa-san yuzawa-san changed the title minor: optimize Struct.validate() field iteration MINOR: Optimize Struct.validate() field iteration Jan 11, 2026
Copy link
Collaborator

@DL1231 DL1231 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants