|
|
|
|
|
by Self-Perfection
1060 days ago
|
|
I have an example for you. I self-host a Telegram bot, which is written in Python. However, I believe that if it were written in JavaScript, the situation would be similar. The bot is rarely used, so on average, it only uses 0.06% of my machine's CPU power. However, it consumes 3% of the RAM at the same time. --smol switch according to Jarred's tests reduces memory usage ~7 times by increasing CPU usage just 2x times. In my case such redistribution of resource consumption would be a clear win! To save RAM, I actually switched to a 32-bit Python base image. This switch resulted in a 30% reduction in RAM usage. |
|