Dense arrays should be represented more compactly in BSON

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Performance
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
      >

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

              Created:
              Updated:
              Resolved: