You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "yuzawa-san (via GitHub)" <gi...@apache.org> on 2026/01/11 00:04:34 UTC

[PR] minor: optimize Struct.validate() field iteration [kafka]

yuzawa-san opened a new pull request, #21281:
URL: https://github.com/apache/kafka/pull/21281

   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):
   
   <img width="1620" height="449" alt="image" src="https://github.com/user-attachments/assets/e7a7121e-ca38-43ea-9e64-58890e57b826" />
   
   
   inset:
   
   <img width="1628" height="555" alt="image" src="https://github.com/user-attachments/assets/54081aab-7505-4433-a31b-d81f8f3d7d13" />
   
   
   i am independently trying to optimize the schema-registry library as well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINOR: Optimize Struct.validate() field iteration [kafka]

Posted by "yuzawa-san (via GitHub)" <gi...@apache.org>.
yuzawa-san commented on PR #21281:
URL: https://github.com/apache/kafka/pull/21281#issuecomment-4604606716

   could you please take a look at this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINOR: Optimize Struct.validate() field iteration [kafka]

Posted by "yuzawa-san (via GitHub)" <gi...@apache.org>.
yuzawa-san commented on PR #21281:
URL: https://github.com/apache/kafka/pull/21281#issuecomment-5320853013

   could you please take a look at this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINOR: Optimize Struct.validate() field iteration [kafka]

Posted by "github-actions[bot] (via GitHub) via jira" <ji...@kafka.apache.org>.
github-actions[bot] commented on PR #21281:
URL: https://github.com/apache/kafka/pull/21281#issuecomment-6906614749

   This PR is being marked as stale since it has not had any activity in 90 days. If you
   would like to keep this PR alive, please leave a comment asking for a review. If the PR has 
   merge conflicts, update it with the latest from the base branch.
   <p>
   If you are having difficulty finding a reviewer, please reach out on the 
   [mailing list](https://kafka.apache.org/contact).
   <p>
   If this PR is no longer valid or desired, please feel free to close it. If no activity
   occurs in the next 30 days, it will be automatically closed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINOR: Optimize Struct.validate() field iteration [kafka]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21281:
URL: https://github.com/apache/kafka/pull/21281#issuecomment-4589731887

   This PR is being marked as stale since it has not had any activity in 90 days. If you
   would like to keep this PR alive, please leave a comment asking for a review. If the PR has 
   merge conflicts, update it with the latest from the base branch.
   <p>
   If you are having difficulty finding a reviewer, please reach out on the 
   [mailing list](https://kafka.apache.org/contact).
   <p>
   If this PR is no longer valid or desired, please feel free to close it. If no activity
   occurs in the next 30 days, it will be automatically closed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINOR: Optimize Struct.validate() field iteration [kafka]

Posted by "yuzawa-san (via GitHub)" <gi...@apache.org>.
yuzawa-san commented on PR #21281:
URL: https://github.com/apache/kafka/pull/21281#issuecomment-3988056924

   could you please take a look at this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINOR: Optimize Struct.validate() field iteration [kafka]

Posted by "yuzawa-san (via GitHub) via jira" <ji...@kafka.apache.org>.
yuzawa-san commented on PR #21281:
URL: https://github.com/apache/kafka/pull/21281#issuecomment-6921221507

   could you please take a look at this? it is a small fix with clear performance gains


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org