Add __slots__ to commonly used bson classes

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0
    • Affects Version/s: None
    • Component/s: Internal
    • None
    • None
    • None
    • None
    • None
    • None

      Decimal128, ObjectId, and RawBSONDocument all utilize __slots__ to save space.

      We should utilize __slots__ for MinKey, MaxKey, DBRef, Int64, Regex, and Timestamp too.

              Assignee:
              Julius Park (Inactive)
              Reporter:
              Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: