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

Coverity analysis defect 123333: Inefficient vector resizing with reserve.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Execution
    • ALL

    Description

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

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: