Build RawArrayBuf without allocating a Vec in rawbson macro

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The rawbson! macro currently builds RawArrayBuf by collecting all the elements into a Vec and then using RawArrayBuf's FromIter implementation. The Vec allocation could be avoided by directly building a RawArrayBuf, as is done for RawDocumentBuf.

              Assignee:
              Unassigned
              Reporter:
              Patrick Freed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: