

max: when we have a lot of input data (usually in production). Limits of Algorithm Variation (Image by the author) min: when we have a reduced number of input data (usually locally). Well, how are code instructions executed internally? Let’s take a look at this illustration: Note that in this article, when I talk about performance, I talk about the execution speed and when I talk about consumption, I talk about the allocated memory. The code must also be beautiful from the inside! On the other hand, the low level makes it possible to have a high-performance car that’s efficient.
MEMORY CLEAN 3 SOFTWARE
If the software was a car, then we can say that the design and the architecture make it possible to have a good and beautiful carcass: resilient, scalable, extensible, maintainable, etc. The same goes for code: in order for it to consume fewer resources (CPU, memory, GPU), we should always choose the optimal path. What are you going to do? Yeah, good! You will choose the short trajectory! As a result, you will save time and consumption! You have a limited amount of kerosene because the plane’s fuel tank is limited. Let’s say you are an airplane pilot and you need to fly from France to Istanbul. Well, gorgeous! But, let’s stop a bit to simplify what I mean! The software we write should be effective and efficient!

We cannot respond to the lack of performance and resources by increasing and modifying the hardware each time. In computer jargon, the required steps reflect Time Complexity and the required amount of memory reflects Space Complexity.īy reducing the temporal and spatial complexities we gain resources and money.
