ExportXMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • None
    • C Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      mongodb::Cursor is in fact a RawBatchCursor (source) wrapped in a stream encapsulating a VecDeque<T> buffer (source). The single-document-based iteration API of mongodb::Cursor forces intermediate allocations and deep-copies of every individual BSON document within the full batch into this buffer. The CursorT implementation should be refactored to bypass mongodb::Cursor in favor of directly accessing the raw batch document instead, avoiding the overhead of intermediate copies per document in the batch.

            Assignee:
            Unassigned
            Reporter:
            Ezra Chung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: