logoalt Hacker News

nwjsmithyesterday at 8:58 PM2 repliesview on HN

It’s (mostly) not about performance, it’s about minimizing failure. Static memory allocation makes you OOM-proof.


Replies

irq-1yesterday at 10:43 PM

> Static memory allocation makes you OOM-proof.

It ensures you don't cause an OOM error. Your app can still be killed by OOM.

show 1 reply
skaviyesterday at 10:14 PM

seems not as great for consumer software in uncontrolled environments. static allocation means the application hordes memory that the OS should probably be able to provide to other processes. constant work probably leads to higher average power usage.

show 2 replies