[SERVER-28099] Use key rather than cmp in libdeps.py sorted_by_str Created: 24/Feb/17  Updated: 05/Apr/17  Resolved: 28/Feb/17

Status: Closed
Project: Core Server
Component/s: Build, Internal Code
Affects Version/s: None
Fix Version/s: 3.5.4

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4, v3.2
Sprint: Repl 2017-03-06
Participants:

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



 Comments   
Comment by Githook User [ 28/Feb/17 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-28099 Use key rather than cmp in libdeps.py sorted_by_str

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."
Branch: master
https://github.com/mongodb/mongo/commit/1927810547c7af41bcbcb93a9822438d381ee3cd

Generated at Thu Feb 08 04:17:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.