AppFlowy-IO / AppFlowy-IO/AppFlowy

[FR] Free RAM

Abierto
#3,714 2 comentarios 2 reacciones 1 asignado Asignado a @LucasXu0 Ver en GitHub
2024 bug
Lenguaje dominante
Dart
Estrellas
76.6k
Forks
6k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.