DioxusLabs / DioxusLabs/blitz

Excessive Memory Usage in Blitz

Open
#286 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.1k
Forks
203
Avg merge
8h 58m
Merged PRs (30d)
112

Description

**Description:**
I've observed abnormally high memory usage in Blitz. A simple demo application occupies over 200MB of memory, which is close to the memory footprint typical of Electron-based projects.
Additionally, when the demo is left idle for an extended period (usually over 30 minutes), memory usage drops to around 50MB. This suggests that the additional memory consumption may be due to a bug.
The issue can be reproduced using the todomvc example from the repository (the counter example exhibits the same behavior).

**Steps to Reproduce:**
Use the todomvc example from the repository
Build with: cargo build --release in the todomvc directory
Run the application
Observe memory usage in Task Manager, memory usage exceeding 200MB

**Environment:**
OS: Windows 11 Pro (amd64) 24H2 Build 26100.6899
Display Language: Simplified Chinese
Rust: rustc 1.91.0
MSVC: V143
CMake: 4.1.2
Build Configuration: Release mode

When start demo, memory usage observed in task manager.
Image

After idle 40 mins.

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.