Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-90440

Coverity analysis defect 155468: Inefficient vector resizing with reserve.

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

      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:1270: INEFFICIENT_RESERVE 155468 A "std::vector" has its capacity adjusted with "reserve()" in a manner that is likely to have severe performance penalties.

            Assignee:
            sandeep.dhoot@mongodb.com Sandeep Dhoot
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: