News for hackers. Stuff that matters.
Re:Dealing with Out-of-Memory Conditions in Rust by grishka on Saturday August 14, 2021 @07:20PM (#28184772)
It depends on the application. On Android, for example, I don't want my app to crash with an OOM while trying to load an image. I want to instead clear my in-memory cache and try again with more memory available. So I wrapped the code that loads images into a try-catch that catches OutOfMemoryError and it worked wonderfully.

There are no comments on this comment yet.