Coverity analysis defect 155445: Inefficient vector resizing with reserve.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Atlas Streams
    • Fully Compatible
    • ALL
    • Sprint 49
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Inefficient vector resizing with reserve.

      This operation, if performed to grow large vectors, may take a very long time to complete. A vector's capacity is increased with reserve in a manner that causes many unnecessary copies.
      /src/mongo/db/modules/enterprise/src/streams/management/stream_manager.cpp:1427: INEFFICIENT_RESERVE 155445 A "std::vector" has its capacity adjusted with "reserve()" in a manner that is likely to have severe performance penalties.

            Assignee:
            Sandeep Dhoot
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: