How to improve a program perfomance

1 · Kiko Beats · May 25, 2021, midnight
Essentially you have to do the following things, in a loop: Measure. The first measure should be done before any change, the second after the change. Don’t tune for speed until you’ve measured, and even then don’t unless one part of the code overwhelms the rest. Start doing measurement from big granularity (e.g., HTTP response time) and moves to low granularity (e.g., DNS Lookup + TCP Connection + TLS Handshake + Content Transfer) to find the real place where improvement can make the differe...