News for hackers. Stuff that matters.
Re:Don't kill my app by resonious on Thursday November 23, 2023 @08:22AM (#38392458)
I think Android dev is unnecessarily designed in a way that makes saving data require a lot of code. If you know what you're doing, you can mmap a file, put all your working memory in there, and let the OS save it for you. No serialization or parsing necessary and memory access is exactly the same as usual with no overhead. You'd think that using a managed language would make it easier to abstract and support this kind of thing but seems they'd rather require all app devs do manual saving and reloading of their app data.
Re:Don't kill my app by guappa on Thursday November 23, 2023 @09:24AM (#38393066)
How to kill solid storage with one easy trick!

Please don't do this.

Re:Don't kill my app by resonious on Friday November 24, 2023 @05:10AM (#38402314)
How does it kill solid (state?) storage compared to writing JSON or SQLite constantly? Genuine ignorance on my part.