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

Dense arrays should be represented more compactly in BSON

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Performance
    • None

    Description

      Is there any hope of getting a representation for arrays in BSON that isn't derived from map? Every additional int adds 11 bytes!

      > Object.bsonsize([1])
      16
      > Object.bsonsize([1,2])
      27
      > Object.bsonsize([1,2,3])
      38
      >

      Attachments

        Activity

          People

            Unassigned Unassigned
            krave Kushal Dave
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: