Restrict Fractal RAM usage
Using little RAM is nice, using a bounded amount of RAM is really important – especially for Fractal as a messaging application that is a) long running and b) designed for resource constrained devices aka phones.
Currently, everything new, like events, gets added to our data structures, but is never removed. Thus, we produce an ever growing pile of RAM.
We should only keep in RAM what is currently needed to display the UI, the rest can be cached on disk by the SDK and re-requested when needed. For the room history we could always keep the few latest messages and the currently viewed position with its periphery.
Current fractal-next
with my main account takes up nearly 500 MB after startup… and then it wants more :D