TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: QuadSort, Esoteric Fast Sort

78 点作者 Exorust超过 2 年前

5 条评论

j_not_j超过 2 年前
Uses the wolfsort benchmark, which uses a time-based seed for the pseudo-random-number generator &quot;rand&quot;. These are therefore unreproducible results (for the randomized inputs).<p>The results are very interesting and generally follow the rule that bigger hand-optimized code can be faster code.
评论 #34570283 未加载
评论 #34571181 未加载
tuukkah超过 2 年前
TLDR: A visualisation of how QuadSort adaptively combines various novel strategies to achieve the best performance on a wide variety of inputs: <a href="https:&#x2F;&#x2F;github.com&#x2F;scandum&#x2F;quadsort#visualization">https:&#x2F;&#x2F;github.com&#x2F;scandum&#x2F;quadsort#visualization</a><p>Benchmarks of how it beats qsort, Timsort, pdqsort etc.: <a href="https:&#x2F;&#x2F;github.com&#x2F;scandum&#x2F;quadsort#benchmark-quadsort-vs-stdstable_sort-vs-timsort">https:&#x2F;&#x2F;github.com&#x2F;scandum&#x2F;quadsort#benchmark-quadsort-vs-st...</a><p>Is it called esoteric just because it&#x27;s complex?
评论 #34578082 未加载
评论 #34568893 未加载
whiterock超过 2 年前
looks awesome. making this the default sort would surely save lots of co_2.
评论 #34571097 未加载
sayogo1227超过 2 年前
Are there any other examples of such hand crafted algorithms that perform better than theoretically best algorithms?
plq超过 2 年前
&gt; WSL 2 gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)<p>Why not run the benchmarks in an environment that matters? Latest stable gcc is 12 and I wouldn&#x27;t think anybody runs production code on WSL.
评论 #34570161 未加载
评论 #34570036 未加载
评论 #34570209 未加载