Performance anti patterns

前端 未结 18 886
天涯浪人
天涯浪人 2021-02-05 19:29

I am currently working for a client who are petrified of changing lousy un-testable and un-maintainable code because of \"performance reasons\". It is clear t

相关标签:
18条回答
  • 2021-02-05 19:54

    Lack of clear program structure is the biggest code-sin of them all. Convoluted logic that is believed to be fast almost never is.

    0 讨论(0)
  • 2021-02-05 19:55

    Premature performance optimizations comes to mind. I tend to avoid performance optimizations at all costs and when I decide I do need them I pass the issue around to my collegues several rounds trying to make sure we put the obfu... eh optimization in the right place.

    0 讨论(0)
  • 2021-02-05 19:55

    Using design patterns just to have them used.

    0 讨论(0)
  • 2021-02-05 19:56

    The elephant in the room: Focusing on implementation-level micro-optimization instead of on better algorithms.

    0 讨论(0)
  • 2021-02-05 19:58

    Changing more than one variable at a time. This drives me absolutely bonkers! How can you determine the impact of a change on a system when more than one thing's been changed?

    Related to this, making changes that are not warranted by observations. Why add faster/more CPUs if the process isn't CPU bound?

    0 讨论(0)
  • 2021-02-05 19:58

    General solutions.

    Just because a given pattern/technology performs better in one circumstance does not mean it does in another.

    StringBuilder overuse in .Net is a frequent example of this one.

    0 讨论(0)
提交回复
热议问题