srdo opened a new pull request, #15024:
URL: https://github.com/apache/kafka/pull/15024

   The encoding for a StringSerializer doesn't change during the life of the 
serializer, so there isn't a good reason to look up the corresponding Charset 
every time a String needs to be serialized, which is what the getBytes(String) 
method does.
   
   Looking it up once on construction is more efficient.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to