langflow
langflow copied to clipboard
progressive browser memory growth
Bug Description
I'm experiencing significant memory consumption issues in my application when storing a large state tree in Zustand. My state contains around 200+ nodes with complex nested structures, and I've noticed that browser memory keeps increasing continuously.
Problem: Browser memory usage grows steadily and doesn't seem to be properly garbage collected.
Questions:
- Are there any built-in optimization strategies in Zustand for handling large state objects?
- What are the recommended patterns for managing large datasets (200+ complex objects) in Zustand?
- Are there any known memory leak issues or garbage collection considerations I should be aware of?
- Would using middleware like persist help or worsen memory usage in this scenario?
Any guidance or best practices would be greatly appreciated!
Reproduction
Drag and drop 200+ components onto the canvas and build components
Expected behavior
After opening the frontend page in the browser and completing the build process, memory usage should not continuously increase.
Who can help?
@Cristhianzl @lucaseduoli @igorrCarvalho
Operating System
mac m1
Langflow Version
1.14
Python Version
None
Screenshot
No response
Flow File
No response