dmad
Mmarimo
•Created by dmad on 6/26/2024 in #help-support
Advanced memory management
Continuing the conversation with @evandertoorn
Memory Management
How does marimo keep things in memory? marimo internally manages a "globals" dict shared between all cells, everything that is defined is put into this dictionary. The dag primarily works with a static code analysis without respect to what has already been defined etc, to determine the order in which to run cells. Since the global dict is persistent during the session, it could potentially lead to memory build up. However, instead, variables are removed and collected by marimo on cell invalidation.
10 replies