mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[GH-ISSUE #3714] [FR] Free RAM #1681
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#1681
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Rasterisko on GitHub (Oct 16, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3714
Originally assigned to: @LucasXu0 on GitHub.
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:

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:

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.
@Xazin commented on GitHub (Mar 2, 2024):
I can't see that the RAM accumulates, I'm on MacOS and it seems like it falls accurately depending on current open document/database.
We did do some disposal of resources not long ago, and we definitely do not store all opened documents in RAM for the whole app lifecycle, that would have been really bad and also way more noticeable.
Can you double check that this is no longer an issue and close if needed @LucasXu0 ?
@Rasterisko commented on GitHub (Jun 23, 2024):
Hello again,
I tested here using the last version 0.6.1 and it seems to accumulate faster now.