Re:Go will use pdqsort in next release
by tgv on Thursday April 21, 2022 @02:43AM
(#31106618)
Good question. I checked the 1.18.1 code, and Sort() and Stable() call different functions. The former calls quick sort, the latter something else (groups of 20 items with insertion sort, then symmerge?). Quick sort's traditional implementation isn't stable, so I'd be surprised if Sort() would actually be.
[ Parent
| on HN ]
There are no comments on this comment yet.