Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Improve memory used in the Web IDE
## Description
If you open the Web IDE for the [GitLab](https://gitlab.com/groups/gitlab-org/gitlab) project you'll see that it takes ~900MB of memory :grimacing:... If you open for a trivially sized project the footprint is ~30MB.
https://youtu.be/mNQUVNwZIMk
Certainly there's some room for improvement.
## Findings
- The GitLab project has ~28,000 files. Using the trivially sized project as a "base memory footprint", we can calculate that **a single file in a repository will take up about 30KB**.
This does not include file content (which isn't loaded until the file is actually opened). It's probably that callback functions consume the most memory here...
## Questions
- Do files consume more memory than directories?
epic