by jedberg · 7y ago · 0 comments
"The execution time of algorithm A scales up with the number of items, while algoritm B's is constant."
vs
"The execution time of algorithm A is O(n), while algorithm B's is O(1)."
I've spent so much time trying to chase down bugs caused by junior programmers because something that worked fine with 100 rows in db, slows to a crawl when we move a feature out of beta and we suddenly have 1000 rows.
If they had some idea that the query they were writing was O(n^3) they could have done a quick estimate and saved us all the trouble.