Get help from the marimo community

d
dmad
Offline, last seen 4 weeks ago
Joined November 25, 2024
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.
9 comments
e
d