3 ms·
"Are you using a for loop here? Why not, I learned that for loops are basically the best loop, I don't want to pay for your $.each nonsense. And I want to see y
by evan_ 13y ago
"Are you using a for loop here? Why not, I learned that for loops are basically the best loop, I don't want to pay for your $.each nonsense. And I want to see you use some switch statements over here too."
- gregjor 13y agoDon't laugh. I worked on a multi-million dollar project that was derailed for a couple of weeks by an analyst who insisted that doing a bubble sort on unsorted results from an Oracle query would be faster than using a SQL ORDER BY. This was based on a half-remembered class that used bubble sort. Pointing out that bubble sort is usually given as an example of an expensive sort had no effect. Ultimately Oracle won, of course -- it's orders of magnitude faster. But many hours were wasted and tempers flared.
- JamesAcorn 13y agoJust curious.. why didn't anyone run a quick benchmark of both methods?
- gregjor 13y agoProject politics. We did run benchmarks and Oracle's ORDER BY clearly came out ahead, but the analyst espousing bubble sort was entrenched and dismissed all benchmarks as special cases.