Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5097

BinaryMarshaller should write ints in "varint" encoding where it makes sense

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: binary
    • Labels:

      Description

      There are a lot of places in the code where we write integers for some special purposes. Quite often their value will be vary small, so that applying "varint" format could save a lot of space at the cost of very low additional CPU overhead.

      Specifically:
      1) Array/collection/map lengths
      2) BigDecimal's (usually will save ~6 bytes)
      3) Strings
      4) Enum ordinals

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                daradurvs Vyacheslav Daradur
                Reporter:
                vozerov Vladimir Ozerov
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: