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

Add __slots__ to commonly used bson classes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0
    • Internal

    Description

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

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

      Attachments

        Activity

          People

            julius.park@mongodb.com Julius Park (Inactive)
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: