Write naive sort implementation

>write naive sort implementation
>outperform glibc's qsort

Attached: 1531760424812.jpg (750x728, 270K)

Other urls found in this thread:

cs.rpi.edu/~musser/design/blitz/meta-art.html
twitter.com/NSFWRedditGif

Yeah, that naive sort is one hell of an algorithm.

Attached: 1465422803890.jpg (328x277, 11K)

>wrote radix
>3 times faster than std sort on randomly generated uint's
feels good man

same

>work-specific tool works better than Swiss army knife
No shit.

chansort
>for x, wait x, then print x

>not writing a custom, inlined, recursive template metaprogramming mergesort instead of using the slow function pointer based C-sort.

How many elements?
I could outperform you with bubblesort if all the elements fit in a cache line.

>bubble sort

Attached: 1551589790310.png (403x448, 53K)

cs.rpi.edu/~musser/design/blitz/meta-art.html

The C++ master race dabs of C-faggots once again.

Attached: 1509997904794.png (1000x800, 285K)

Knowing Jow Forums your "faster than libc/std" sorting algorithms are either bugged or are only faster in a very specific context. Basically your idiots.

chansort beats all other sorts when you have 1940s level of clockspeed and IPC, but an infinite number of cores

>makes my randomized algorithms on graphs 3x times faster
u wot m8
kys

sorting is too high iq this is why i'm not a programmer

fucking qsort is the bane of all C fags who think their language is superior to c++... you pass a goddamn function pointer to it, even if you are trying to sort an array of primitives. This overhead literally slows down the algorithm by 2.5 times.

1 see keyword I don't like
2 post brainlet wojak
3 goto 1

Compare a linear sorting algorithm and a semi logarithmic

> 3 TiMeS FaStEr oN uint

Attached: 1551149426241.png (1000x432, 165K)

that'll sort'em alwight, huhuhuhuh

Attached: chung.jpg (225x224, 6K)

both from small numbers (several thousands where run time is no longer sub 1 ms) to massive (gigabytes of data)

it would not be that disasterous if there was not the optimization barrier of dynamic linking and the function got inlined

radix can work on signed and floats as well, just saying

What's the proper way to do it?

This is really interesting

O(nlog(n)) on everything
O(m+n) on numerical

Just saying.