René's URL Explorer Experiment


Title: bpo-28685: Optimize sorted() list.sort() with type-specialized comparisons by embg · Pull Request #582 · python/cpython · GitHub

Open Graph Title: bpo-28685: Optimize sorted() list.sort() with type-specialized comparisons by embg · Pull Request #582 · python/cpython

X Title: bpo-28685: Optimize sorted() list.sort() with type-specialized comparisons by embg · Pull Request #582 · python/cpython

Description: Description of the optimization (see also this poster) The idea is simple: in practice, it's very uncommon to sort type-heterogeneous lists. This is because lists in general tend to be used in a homogeneous way (if you're iterating and the type is changing, your code may break, depending on what you're doing), and because comparison is often not defined in the heterogeneous context ("apples and oranges"). So, instead of checking types during every single compare in the sort (dynamic dispatch), we can simply iterate once in a pre-sort check and see if the list is type-homogeneous. If it is, we can replace PyObject_RichCompareBool with whatever compare function would have ended up being dispatched for that type. Since this check is cheap and very unlikely to fail, and checking types every time we compare is expensive, this is a reasonable optimization to consider. This is, however, only the beginning of what's possible. Namely, there are many safety checks that have to be performed during every compare in the common cases (string, int, float, tuple) that one encounters in practice. For example, character width has to be checked for both strings every time two strings are compared. Since these checks almost never fail in practice (because, e.g., non-latin strings are uncommon in practice, etc.), we can move them out of the comparison function and into the pre-sort check, as well. We then write special-case compare functions (I implemented one for each of the four types mentioned above) that are selected iff. the assumptions necessary to use them are verified for each list element. Benchmarks I considered two sets of benchmarks: one organized by type (random lists of that type), and one organized by structure. Full benchmark scripts can be found here. The results are below (standard deviations were less than 0.3% of the mean for all measurements): By type Type Percent improvement on random lists of [type] (1-patched/unpatched) heterogeneous (lots of float with an int at the end; worst-case) -1.5% float 48% bounded int (magnitude smaller than 2^32) 48.4% latin string (all characters in [0,255]) 32.7% general int (reasonably uncommon?) 17.2% general string (reasonably uncommon?) 9.2% tuples of float 63.2% tuples of bounded int 64.8% tuples of latin string 55.8% tuples of general int 50.3% tuples of general string 44.1% tuples of heterogeneous 41.5% By structure These are just the benchmarks described in Objects/listsort.txt. The first table is the loss we experience if we sort structured heterogeneous lists (worst case: list is already sorted, we go all the way through doing n type-checks, and then we only end up doing n comparisons. Tragic, but extremely unlikely in practice; in practice, we would usually find the first heterogeneous element early on, and break out of the check, but here, the single, lonely float is hiding all the way at the end of the list of int, so we don't find it until we've done all n checks): Benchmark (for heterogeneous lists, worst-case) Percent improvement (1-patched/unpatched) \sort -17.2% /sort -19.8% 3sort -18.0% +sort -18.8% %sort -10.0% ~sort -2.1% =sort -21.3% The second table is the same benchmark, but on homogeneous lists (int): Benchmark (for homogeneous lists) Percent improvement (1-patched/unpatched) \sort 54.6% /sort 56.5% 3sort 53.5% +sort 55.3% %sort 52.4% ~sort 48.0% =sort 45.2% Patch summary Here we describe at a high level what each section of the patch does: Line numbers in Objects/listobject.c What the lines do 1053-1069 Define a struct to hold the function pointers we will select in the pre-sort check. This struct then has to be passed in to every function that performs comparison (to keep things in local scope). 1075-1080 Compare function for heterogeneous lists; just a wrapper for PyObject_RichCompareBool. To be selected if all of our pre-checks fail. 1086-1108 Compare function for general homogeneous lists; just a wrapper for ob_type->tp_richcompare, which is stored by the pre-sort check at compare_funcs.key_richcompare. This yields modest optimization (neighbourhood of 10%), but we generally hope we can do better. 1111-1127 Compare function for lists of latin string. During the pre-sort check, we verify that every string in the list uses one character per byte; otherwise, we default to the general homogeneous compare. If this check is even somewhat likely to pass, it's worth it, because the payoff is large, as can be seen in the Benchmarks section. The compare function basically directly accesses the data buffers of the two strings and memcmps them. 1130-1154 Compare function for lists of bounded long. During the pre-sort check, we verify that every int in the list fits in a single machine word. If that check passes, we can use this optimized compare function, which basically directly compares the machine words representing the two ints (taking sign into account). This is faster than the general comparison, which has to figure out which word is most significant for both inputs, etc, in addition to all the type-checking. 1157-1166 Compare function for lists of float. Doesn't assume anything; just directly compares the two floats, skipping all the unnecessary type-checking. Because PyFloat_Type->tp_richcompare does a lot of typechecking that we want to move out of the sort loop, it pays to have this optimized compare available. 1173-1233 Compare function for lists of non-empty tuple. Tuple comparison is optimized on two levels. Namely, after selecting compare_funcs.key_compare in the pre-sort check, we run the pre-sort check again on the list T = [x[0] for x in L] (we don't actually run the check twice, but we do something functionally equivalent to this). If T is type-homogeneous, or even better, satisfies the requirements for one of our special-case compares, we can replace the call to PyObject_RichCompareBool for the first tuple element with a call to compare_funcs.tuple_elem_compare. This allows us to bypass two levels of wasteful safety checks. If the first elements of the two tuples are equal, of course, we have to call PyObject_RichCompareBool on subsequent elements; the idea is that this is uncommon in practice. 2168-2212 First part of the pre-sort check: we set the variables key_type, keys_are_all_same_type, ints_are_bounded, strings_are_latin, and keys_are_in_tuples (which is 1 iff. every list element is a non-empty tuple, in which case all the other variables refer to the list [x[0] for x in L]). 2215-2243 Second part of the pre-sort check: given values for those variables, select the appropriate compare function. If keys_are_in_tuples and key_type != &PyTuple_Type, then use the other variables to select compare_funcs.tuple_elem_compare, and set compare_funcs.key_compare = unsafe_tuple_compare. Selected quotes from the python-ideas thread Terry Reedy: Do reference this thread, and quote Tim's approval in principle, if he did not post on the tracker. Tim Peters: Would someone please move the patch along? I expect it's my fault it's languished so long, since I'm probably the natural person to review it, but I've been buried under other stuff. But the patch doesn't change anything about the sorting algorithm itself - even shallow knowledge of how timsort works is irrelevant. It's just plugging in a different bottom-level object comparison function when that appears valuable. I've said from the start that it's obvious (to me ;-) ) that it's an excellent tradeoff. At worst it adds one simple (pre)pass over the list doing C-level pointer equality comparisons. That's cheap. The worst-case damage is obviously small, the best-case gain is obviously large, and the best cases are almost certainly far more common than the worst cases in most code. Later in that message, Tim also pointed out a bug, which has been fixed in this version of the patch. https://bugs.python.org/issue28685

Open Graph Description: Description of the optimization (see also this poster) The idea is simple: in practice, it's very uncommon to sort type-heterogeneous lists. This is because lists in general tend to be used in ...

X Description: Description of the optimization (see also this poster) The idea is simple: in practice, it's very uncommon to sort type-heterogeneous lists. This is because lists in general tend to be used...

Opengraph URL: https://github.com/python/cpython/pull/582

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:255a811d-965c-4e00-16bb-c96ec68db1b9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBAA4:27025E:5FC36E:7CA497:696B8C9F
html-safe-nonce7b7e589f4e477977d6ca4267342b66b00b9bf55abfcd63270bc0e1abc16a82a0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUE0OjI3MDI1RTo1RkMzNkU6N0NBNDk3OjY5NkI4QzlGIiwidmlzaXRvcl9pZCI6IjQzOTI1Njg5NjQ5ODY0MDgwOTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0ace4fa11c9e81f4d199b6e33121350dbc04cc08a955975e7d631b96ce010a55
hovercard-subject-tagpull_request:109936384
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/582/files
twitter:imagehttps://avatars.githubusercontent.com/u/12179121?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/12179121?s=400&v=4
og:image:altDescription of the optimization (see also this poster) The idea is simple: in practice, it's very uncommon to sort type-heterogeneous lists. This is because lists in general tend to be used in ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/582/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F582%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F582%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/582/files
Reloadhttps://github.com/python/cpython/pull/582/files
Reloadhttps://github.com/python/cpython/pull/582/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/582/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/582/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
rhettingerhttps://github.com/rhettinger
python:masterhttps://github.com/python/cpython/tree/master
embg:fastsorthttps://github.com/embg/cpython/tree/fastsort
Conversation 70 https://github.com/python/cpython/pull/582
Commits 50 https://github.com/python/cpython/pull/582/commits
Checks 0 https://github.com/python/cpython/pull/582/checks
Files changed 5 https://github.com/python/cpython/pull/582/files
bpo-28685: Optimize sorted() list.sort() with type-specialized comparisons https://github.com/python/cpython/pull/582/files#top
Show all changes 50 commits https://github.com/python/cpython/pull/582/files
89c278f Added data-aware optimizations to list.sort() embg Mar 8, 2017 https://github.com/python/cpython/pull/582/commits/89c278ff549b14e64231b44e15e5fc019cd1a99a
2ce5e5e Removed trailing whitespace from listsort_impl embg Mar 8, 2017 https://github.com/python/cpython/pull/582/commits/2ce5e5e7a451ad04f9a75912946307b2f9dea81c
7d2f44a fixed typo embg Mar 8, 2017 https://github.com/python/cpython/pull/582/commits/7d2f44a02e62efd07ca98f713df41ef6d8ae4471
d752fc7 Added myself to Misc/ACKS embg Mar 8, 2017 https://github.com/python/cpython/pull/582/commits/d752fc790f682fc1e4f85415b773036d357dc466
e19728e Made ISLT comment more in line with the current text embg Mar 8, 2017 https://github.com/python/cpython/pull/582/commits/e19728ed3919e5ef52b5f77808be5e92473abee3
7e74c27 Remove newline embg Mar 8, 2017 https://github.com/python/cpython/pull/582/commits/7e74c27fc208f77fd855e16ffab5d23f10ab34f8
9c566b1 untabify embg Mar 8, 2017 https://github.com/python/cpython/pull/582/commits/9c566b1c49d148efad927a01e7089704cdab480c
8876e26 removed newline embg Mar 8, 2017 https://github.com/python/cpython/pull/582/commits/8876e26f27f7b61161135416ec56d56323e7d5b4
8accd71 simplified description of the tuple compare embg Mar 9, 2017 https://github.com/python/cpython/pull/582/commits/8accd71f36838887fdcb93944547b98196d915a4
1567801 grammar embg Mar 9, 2017 https://github.com/python/cpython/pull/582/commits/1567801c7ce6feef7dc957c44c5530d503d3fe61
3820cdb Bugfix -- gcc ignored the error, but clang caught it! embg Mar 9, 2017 https://github.com/python/cpython/pull/582/commits/3820cdba0d2228ab79435c84f282b02c472746d3
201a468 Bugfix -- assertion in unsafe_long_compare was phrased incorrectly. embg Mar 9, 2017 https://github.com/python/cpython/pull/582/commits/201a4681fb8bfe595a2efa1a0c24bea3dff6f8f5
c2a9df2 fix typo embg Mar 9, 2017 https://github.com/python/cpython/pull/582/commits/c2a9df260cedee8d98635b8188dad4c4db9681f9
37b15b8 Added if (v == w) return 1; to all compares embg Mar 11, 2017 https://github.com/python/cpython/pull/582/commits/37b15b80fa7d3ebc29947d480bf6cf2b64cfb673
e402948 Merge branch 'fastsort' of https://github.com/embg/cpython into fastsort embg Mar 11, 2017 https://github.com/python/cpython/pull/582/commits/e4029489eba61d2f3f292c77f12f22f6b42e44d2
ed9b21f Added if (v == w) return 0; to all compares, apologies for previous c… embg Mar 11, 2017 https://github.com/python/cpython/pull/582/commits/ed9b21f5b3ef10fe601142d0b5bbb389de3101cd
acf4c9d Folded CompareFuncs into MergeState and added safety check to unsafe_… embg Mar 12, 2017 https://github.com/python/cpython/pull/582/commits/acf4c9dedf16feb0fb34be1fc148d09e2eb30bc7
395bc7d formatting embg Mar 12, 2017 https://github.com/python/cpython/pull/582/commits/395bc7d0a3444f6238ed03d57984e308dda45715
e677586 formatting embg Mar 12, 2017 https://github.com/python/cpython/pull/582/commits/e67758616b010a51c767d18b80f5fe9751f27611
6070c72 don't need (v==w) for ints/strings embg Mar 12, 2017 https://github.com/python/cpython/pull/582/commits/6070c72def67df06602f2a788e3d2155dacbdc1b
294aa1c went back to i=0 for tuples; we can't infer == from < and >, even wit… embg Mar 12, 2017 https://github.com/python/cpython/pull/582/commits/294aa1c1496d297de6a8fe33f1d5203084567d7a
ba05b2a move all declarations to top of their blocks embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/ba05b2ac67bde2749f9ec8ae94280b99265d6ad7
40ba266 typo embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/40ba266d072d2dc5412cb998247308ee49e749c0
a175939 typo embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/a1759392153e6cbae88b5f85c493450d380f17be
f0dc847 added Py_NotImplemented check to unsafe_object_compare embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/f0dc847b72424d29386a461aa2dfc78a4c50b768
15f87a2 ACTUALLY moved declarations to the tops of blocks embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/15f87a26511b97e5de080122d81f1dd5b7438e23
15f2f01 fix typo embg Mar 9, 2017 https://github.com/python/cpython/pull/582/commits/15f2f01cb80ee95285a1e4fe341bc66cb2d68a5b
6afa847 Added if (v == w) return 0; to all compares, apologies for previous c… embg Mar 11, 2017 https://github.com/python/cpython/pull/582/commits/6afa847f599815cf853ad16dfa5b0443b5766697
af7c027 Folded CompareFuncs into MergeState and added safety check to unsafe_… embg Mar 12, 2017 https://github.com/python/cpython/pull/582/commits/af7c027773850307cf7809e84fa71abc9f88602d
20716cb formatting embg Mar 12, 2017 https://github.com/python/cpython/pull/582/commits/20716cb0c1ddeddec039b21f3959d58a5abc66bd
5960fbe formatting embg Mar 12, 2017 https://github.com/python/cpython/pull/582/commits/5960fbe7ae50400359ce9c99c0743aa841c77fe5
804807b don't need (v==w) for ints/strings embg Mar 12, 2017 https://github.com/python/cpython/pull/582/commits/804807bc82956aa2432050b989da67b9ae585afa
5db7158 went back to i=0 for tuples; we can't infer == from < and >, even wit… embg Mar 12, 2017 https://github.com/python/cpython/pull/582/commits/5db7158a89ec872a70f5e766811cbd56c1489c7e
934d83f move all declarations to top of their blocks embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/934d83f0b993e1b2ec6270094364ac95630e1f14
c536ed3 typo embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/c536ed3c12dce6f6d1c602275910f5881aba4a5f
0b85ac5 typo embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/0b85ac5c087f225035bb3fa3a98678d9f11b14cc
a12d784 added Py_NotImplemented check to unsafe_object_compare embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/a12d7840670f04bab1905bc7804ed340e122ee4d
a54a4e4 ACTUALLY moved declarations to the tops of blocks embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/a54a4e4cfaa58b7fbcbd24ef799d3d87f8c7a4fb
20172fb Merge branch 'fastsort' of https://github.com/embg/cpython into fastsort embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/20172fb2a2e61ca5e1ddac81d71ce63cf63f27d7
862c761 Made tuple compare precisely consistent with PyObject_RichCompareBool… embg Mar 13, 2017 https://github.com/python/cpython/pull/582/commits/862c7619bce74c13dd16ca888828c4730932c578
dd302b5 Added tests embg Mar 15, 2017 https://github.com/python/cpython/pull/582/commits/dd302b50e93bf259597607855cf60646540e6c54
ab3d520 Implemented all of serhiy-storchaka's changes embg Mar 15, 2017 https://github.com/python/cpython/pull/582/commits/ab3d520ed6f46e9a8352fda2c4665de9c0ab6d96
dba3f27 Removed braces at the end of unsafe_tuple_compare embg Mar 15, 2017 https://github.com/python/cpython/pull/582/commits/dba3f27f2367fb47aec13fcdee86e77b416bbe2f
c796422 Fixed test_safe_object_compare embg Mar 16, 2017 https://github.com/python/cpython/pull/582/commits/c796422f7d9e6726e445bd97a00aec0d89cc2654
fa19903 Fix spacing around PyObject * rhettinger Jan 28, 2018 https://github.com/python/cpython/pull/582/commits/fa19903f3f3c799ebfb5e47e48d32d9c35753475
014fd8f Merge in changes to master rhettinger Jan 28, 2018 https://github.com/python/cpython/pull/582/commits/014fd8fa52730376d4cc571ad5d1a94e985dae43
e4679e2 Add news blurb rhettinger Jan 28, 2018 https://github.com/python/cpython/pull/582/commits/e4679e2847f94fe92f963587a0d3cd56bef49613
3b3ce52 Update listsort.txt for the optimization rhettinger Jan 29, 2018 https://github.com/python/cpython/pull/582/commits/3b3ce5280411d81bf18218b89893b9095508bb2a
afed812 Fix whitespace rhettinger Jan 29, 2018 https://github.com/python/cpython/pull/582/commits/afed812b8672f238e9385f1ac3ead19a89c6fc59
ebb4c1f Clean-up and fix tests for mutation of __class__. rhettinger Jan 29, 2018 https://github.com/python/cpython/pull/582/commits/ebb4c1f520a85be2ae01c63caea0d20fcc42c724
Clear filters https://github.com/python/cpython/pull/582/files
Please reload this pagehttps://github.com/python/cpython/pull/582/files
Please reload this pagehttps://github.com/python/cpython/pull/582/files
test_sort.py https://github.com/python/cpython/pull/582/files#diff-557326cf97a3eb82a8bdd2cefa7ce5e845c076dd0127e24d1105ade1f696fc00
ACKS https://github.com/python/cpython/pull/582/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
2018-01-28-15-09-33.bpo-28685.cHThLM.rst https://github.com/python/cpython/pull/582/files#diff-377e9c4811bb67000998a48dad3ed34e24ba65068ada40e23a7015af76668607
listobject.c https://github.com/python/cpython/pull/582/files#diff-67a42c5c0990c7aceea040ffc07905299aab97d64dc49adb256f85340b2c7e81
listsort.txt https://github.com/python/cpython/pull/582/files#diff-6d09fc0f0b57214c2e3a838d366425836c296fa931fe9dc430f604b7e3950c29
Lib/test/test_sort.pyhttps://github.com/python/cpython/pull/582/files#diff-557326cf97a3eb82a8bdd2cefa7ce5e845c076dd0127e24d1105ade1f696fc00
View file https://github.com/embg/cpython/blob/ebb4c1f520a85be2ae01c63caea0d20fcc42c724/Lib/test/test_sort.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/582/{{ revealButtonHref }}
https://github.com/python/cpython/pull/582/files#diff-557326cf97a3eb82a8bdd2cefa7ce5e845c076dd0127e24d1105ade1f696fc00
Misc/ACKShttps://github.com/python/cpython/pull/582/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
View file https://github.com/embg/cpython/blob/ebb4c1f520a85be2ae01c63caea0d20fcc42c724/Misc/ACKS
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/582/{{ revealButtonHref }}
https://github.com/python/cpython/pull/582/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
https://github.com/python/cpython/pull/582/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
Misc/NEWS.d/next/Core and Builtins/2018-01-28-15-09-33.bpo-28685.cHThLM.rsthttps://github.com/python/cpython/pull/582/files#diff-377e9c4811bb67000998a48dad3ed34e24ba65068ada40e23a7015af76668607
View file https://github.com/embg/cpython/blob/ebb4c1f520a85be2ae01c63caea0d20fcc42c724/Misc/NEWS.d/next/Core%20and%20Builtins/2018-01-28-15-09-33.bpo-28685.cHThLM.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/582/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/582/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.