View Single Post
Old 03 August 2015, 15:27   #223
Mrs Beanbag
Glastonbridge Software
Mrs Beanbag's Avatar
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,202
Originally Posted by meynaf View Post
Of course the algorithm helps, but it's not always like bubble vs quick sort. My asm implementation of jpeg's "slow int" DCT is faster than the compiled "fast int" version - slower algorithm, but still faster code.
Well i was going to mention, sometimes the opposite can be the case, for instance if you know your data set is very small. Most quick sort implementations revert to a simpler algorithm such as Insertion Sort when the range becomes small enough.

Never said otherwise.

Originally Posted by meynaf View Post
Normally if you use C, speed isn't an issue.
If it is really vital that you meet a particular speed target, maybe you really have to consider Asm. I am certainly not knocking your own decision to do so.

But if i went to my boss and said "can i do this in asm please?" i know his reply already... "lol, nope"
Mrs Beanbag is offline  
Page generated in 0.03958 seconds with 10 queries