2 ms·
Unless you have a thousand of sorting routines it wouldn't matter much. And compilers generally produce a much larger code than actually possible, you can imple
by lifthrasiir 3y ago
Unless you have a thousand of sorting routines it wouldn't matter much. And compilers generally produce a much larger code than actually possible, you can implement bubblesort in 16 bytes of x86-32 assembly [1] for example.
[1] https://gist.github.com/jibsen/8afc36995aadb896b649 https://gist.github.com/jibsen/8afc36995aadb896b649
- jcalvinowens 3y agoIt matters a great deal if you have 1KB of flash to fit the whole firmware in :)
- lifthrasiir 3y agoOh, if you are already writing an assembly my comment doesn't apply ;-)