Use key rather than cmp in libdeps.py sorted_by_str

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.5.4
    • Affects Version/s: None
    • Component/s: Build, Internal Code
    • None
    • Fully Compatible
    • v3.4, v3.2
    • Repl 2017-03-06
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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."

            Assignee:
            Mathias Stearn
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: