Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14766

Improve performance of VarInt encoding/decoding

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.6.0
    • core
    • None

    Description

      Our current implementation in ByteUtils could be improved via loop unrolling and short circuiting scenarios such as 0. 

      With the changes in attached PR, we see upto 83% improvement in throughput for  writingVarInt.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            divijvaidya Divij Vaidya
            divijvaidya Divij Vaidya
            Ismael Juma Ismael Juma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment