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

Improve performance of VarInt encoding/decoding

    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

        Issue Links

          Activity

            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: