Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1337

Add __slots__ to commonly used bson classes

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

      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@mongodb.com Julius Park (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: