Do I always have to think about performance?

后端 未结 21 714
小蘑菇
小蘑菇 2021-02-04 04:16

I come from a DBA world and performance has always been an obsession. I am turning to development and I always think about performance, constantly, all the time.

Reading

21条回答
  •  臣服心动
    2021-02-04 04:33

    It usually comes down to the requirements. In some cases you have very strict non functional requirements for response times, etc. In those cases, you should be extra effort to tweak your code, procedures, etc.

    But as a rule of thumb (IMHO), you should build your code based on best practices around reliability and maintenability and then have a specific round of tests around performance. This way, you will know that you will be tweaking only the bits of code that are actually impacting the performance.

提交回复
热议问题