For those hungry after speed, I'd recommend recent observation why finally "correctly" implement QuickSort (in pure C - without any assembly - with very short code base - about 3x as minimal quicksort - but leveraging modern CPU pipelines), despite being unstable, still matters and why MergeSort/HeapSort (and their variants - e.g. quadsort) can't beat it for primitive values/types:
https://github.com/gerben-s/quicksort-blog-post/blob/master/blog.md
(note the linked quadsort above seems still slower than the mergesort implemented in the above-linked blog post)
@penguindark @ka-weihe just pinging as I've noticed you were interested in optimizations (regex, hash map, ...)
Very interesting! Tnx :)
Most helpful comment
@penguindark @ka-weihe just pinging as I've noticed you were interested in optimizations (regex, hash map, ...)