giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.29k stars 457 forks source link

Optimize RAM Usage for Large File Embedding #2480

Closed s3a6m9 closed 1 month ago

s3a6m9 commented 2 months ago

When embedding large files into a node, such as multiple large PDFs or long videos, these files are loaded into RAM upon opening the node. This process continues to consume significant RAM even after the node is closed and other nodes are opened. This issue becomes particularly problematic when dealing with numerous large files, leading to excessive RAM usage.

To address this, consider implementing automatic unloading and loading of files. This could involve adding a button next to each embedded file, allowing users to manually load or unload the file as needed. Additionally, a setting for automatic loading and unloading could be introduced, enabling users to pre-set their preferred behavior. Another approach could involve utilizing default system software for handling PDFs and videos, which could significantly reduce the RAM usage associated with embedded files.