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

Use key rather than cmp in libdeps.py sorted_by_str

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.5.4
    • None
    • Build, Internal Code
    • None
    • Fully Compatible
    • v3.4, v3.2
    • Repl 2017-03-06

    Description

      From the python docs: "In general, the key and reverse conversion processes are much faster than specifying an equivalent cmp function. This is because cmp is called multiple times for each list element while key and reverse touch each element only once."

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: