TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Blitsort: A fast, in-place stable hybrid merge/quick sort

202 pointsby scandumover 2 years ago

9 comments

g0xA52A2Aover 2 years ago
On mobile at the moment but it will be interesting to see how this compares to Glidesort [1]. Though I don’t <i>think</i> it’s been released yet.<p>[1] <a href="https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=2y3IK1l6PI4" rel="nofollow">https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=2y3IK1l6PI4</a>
评论 #33827843 未加载
JaneLovesDotNetover 2 years ago
Dumb questions from a programmer who is weak at math.<p>1) Is there a theoretical minimum assymptotic speed for sorting?<p>2) Some of these newer sorts seem to have arbitrary parameters in them (e.g. do X if size of set is smaller than Y). Are we likely to see more and more complex rule sets like that lead to increased sorting speeds?
评论 #33828640 未加载
评论 #33828305 未加载
评论 #33828560 未加载
评论 #33828441 未加载
评论 #33828446 未加载
评论 #33829382 未加载
blondinover 2 years ago
thanks for sharing this with us. i admire this approach that builds on small improvements here and there. and these improvements are interesting in their own way. it reminds me of micro-optimizations with encoding routines. i didn&#x27;t SIMD in the code at first glance. you might gain significant speed with SIMD.
评论 #33842150 未加载
dleslieover 2 years ago
Woah, I like the solid memory guarantees. Could be useful for embedded projects.
评论 #33827261 未加载
jansanover 2 years ago
Since the sorting scene seems to be fully assembled in this thread, I take the opportunity to ask quick question about a use case that does not seem uncommon: Is there an algorithm that is especially efficient if the array contains many sorted sequences, and still works alright for fully shuffled arrays? And are there algorithms that should be avoided in these cases.
评论 #33830635 未加载
k2xlover 2 years ago
Question: are any of these novel sorting algorithms being used in modern databases or tech stacks?
评论 #33832291 未加载
ZhongDongLongover 2 years ago
Is there a TrollSort? I&#x27;m thinking of an algorithm which initially seems to be fast and efficient but takes exponentially longer time with larger arrays and exponentially longer towards the end of sorting.
评论 #33830019 未加载
throwaway12245over 2 years ago
Faster than radix sort?
评论 #33826737 未加载
评论 #33826576 未加载
thatover 2 years ago
Heads up: No license given in the repo, be careful if you are thinking of using this for a project.<p>EDIT: Retracted -- did a search like for &quot;license&quot;, but apparently the search results omits variants like &quot;sublicense&quot; which would have caught the MIT license at the beginning of the source file: <a href="https:&#x2F;&#x2F;github.com&#x2F;scandum&#x2F;blitsort&#x2F;search?q=license" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;scandum&#x2F;blitsort&#x2F;search?q=license</a> vs. <a href="https:&#x2F;&#x2F;github.com&#x2F;scandum&#x2F;blitsort&#x2F;search?q=sublicense" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;scandum&#x2F;blitsort&#x2F;search?q=sublicense</a>
评论 #33826875 未加载
评论 #33826892 未加载
评论 #33827332 未加载