2 Matching Annotations
- Oct 2020
This is a very dangerous practice as each optimization means making assumptions. If you are compressing an image you make an assumption that some payload can be cut out without seriously affecting the quality, if you are adding a cache to your backend you assume that the API will return same results. A correct assumption allows you to spare resources. A false assumption introduces a bug in your app. That’s why optimizations should be done consciously.
- bugs: less attack surface/possibility for bugs
- the optimization costs more than not having the optimization
- risky/dangerous assumptions
- false assumptions