Do you use Big-O complexity evaluation in the 'real world'?

后端 未结 11 1543
失恋的感觉
失恋的感觉 2021-01-01 18:53

Recently in an interview I was asked several questions related to the Big-O of various algorithms that came up in the course of the technical questions. I don\'t think I di

11条回答
  •  不知归路
    2021-01-01 19:45

    Yes, for server-side code, one bottle-neck can mean you can't scale, because you get diminishing returns no matter how much hardware you throw at a problem.

    That being said, there are often other reasons for scalability problems, such as blocking on file- and network-access, which are much slower than any internal computation you'll see, which is why profiling is more important than BigO.

提交回复
热议问题