Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-58554

Simple8b delta for short strings

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2021-08-23, Execution Team 2021-09-06

      If the string is of length 16 or below (not counting null terminator) the encoder will try to make the transformation into an integer that can be delta-stored in Simple-8b.

      The unsigned integer will be computed using reverse order of the string with the null terminator omitted. This means that the last character in the string will be represented as the least significant byte in the integer using little-endian byte order. No size is stored, which works as long as there are no leading NULL characters in the input string. 

       

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: