Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2665

Optimize usage of Result type in Mongorestore

    XMLWordPrintable

Details

    • Task
    • Status: Accepted
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      It was discovered in mongo-tools/274, which solves TOOLS-1856, that over 90% of dynamic allocation occurs due to this line.

      As tfogo mentioned in a subsequent comment, there's no need for this – we can possibly refactor mongorestore to so that it doesn't constantly have to allocate a new Result object.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hari.amoor@mongodb.com Hari Amoor (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: