3 ms·
because computers are not "single task", and you cli is not the only thing that's running also memory cost money, no big deal for your machine, but scale this
by Kukumber 4y ago
because computers are not "single task", and you cli is not the only thing that's running
also memory cost money, no big deal for your machine, but scale this to a fleet of thousands of machines and it start to cost big money
then people wonder why their burnrate is indecently high
- unwind 4y agoHuh? Modern OSes will of course free the memory (as well as any other resources) when the process exits. If you know your program has limited runtime you can treat standard heap allocation functions like an over-engineered arena allocator. :)
- simonkagedal 4y agoI did not mean the cli itself (such as bash), but small programs it executes (such as ls). Also not arguing for the practice as a general strategy, but feels like it could have a place!