AppFlowy-IO / AppFlowy-IO/AppFlowy

[FR] Free RAM

Open
#3,714 2 comments 2 reactions 1 assignee Assigned to @LucasXu0 View on GitHub
2024 bug
Dominant language
Dart
Stars
76.6k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### Description

As the notes are opened, they accumulate in the RAM memory. It would be really nice if the app freed up the RAM when a note was closed.

### Impact

There would be no risk of using too much RAM even with a lot of notes and images.

### Additional Context

Using AppImage in Linux Mint 21.1 XFCE.

To add more information I did a simple test. I openned a new folder and inserted a new note just with a calendar:
![Início do programa consumo RAM](https://github.com/AppFlowy-IO/AppFlowy/assets/95868625/1852c35b-b9f2-4df2-bbd3-ad394f622cb8)

Them, I started to change between the two notes. The ram has started to go up indicating that for every time a note is opened, it is loaded into the ram memory, even if it has already been opened previously:
![Depois de algumas trocas consumo RAM](https://github.com/AppFlowy-IO/AppFlowy/assets/95868625/20b53a5a-0cc3-430e-b1f3-e3a2dcfab1f2)
After about 1 minute of doing this, I got to +100MB of RAM accumulated as the screenshot shows. I waited about 20min to see if the RAM would decrease, but the consumption remains the same. This may seem like an exaggerated test at first, but I believe it is not. A user with a lot of notes that contain calendars, images, tables, etc. will probably reach a very high RAM consumption after some short time of use if they are constantly browsing between their notes.

I think I can't say this is a bug, so that's why I openned like a Feature Request.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.