Title: On large projects the IDE uses excessive memory · Issue #4545 · purescript/purescript · GitHub
Open Graph Title: On large projects the IDE uses excessive memory · Issue #4545 · purescript/purescript
X Title: On large projects the IDE uses excessive memory · Issue #4545 · purescript/purescript
Description: Description On our project of 9877 source files (including libs), the IDE quickly consumes so much memory that it becomes hard to work with. On my 32GB Apple M2, it will be using over 20GB of memory in under a minute. It then starts to s...
Open Graph Description: Description On our project of 9877 source files (including libs), the IDE quickly consumes so much memory that it becomes hard to work with. On my 32GB Apple M2, it will be using over 20GB of memor...
X Description: Description On our project of 9877 source files (including libs), the IDE quickly consumes so much memory that it becomes hard to work with. On my 32GB Apple M2, it will be using over 20GB of memor...
Opengraph URL: https://github.com/purescript/purescript/issues/4545
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On large projects the IDE uses excessive memory","articleBody":"## Description\r\n\r\nOn our project of 9877 source files (including libs), the IDE quickly consumes so much memory that it becomes hard to work with.\r\n\r\nOn my 32GB Apple M2, it will be using over 20GB of memory in under a minute. It then starts to slow down until common commands, like looking up a type definition can take over 30 seconds.\r\n\r\n## To Reproduce\r\n\r\nThis is not simple as our project is not open source but I believe it would be likely to happen on any sufficiently large project. \r\n\r\n## Expected behavior\r\n\r\nThe IDE should limit it's memory usage and commands should execute within a few seconds. \r\n\r\n## Additional context\r\n\r\nFrom tinkering with the IDE, I have found that the forcing of the result in `populateVolatileStateSTM` and possibly `populateVolatileStateSync` as well, seems to be responsible. I will make a draft PR to explain in more detail. \r\n\r\nI was also wondering if running each command on a new thread and [setting allocation limits](https://hackage.haskell.org/package/base-4.20.0.1/docs/System-Mem.html#g:2) and/or a timeout for it might help by limiting the resources used by abnormally greedy requests.\r\n\r\n## PureScript version\r\n\r\n0.15.15\r\n","author":{"url":"https://github.com/roryc89","@type":"Person","name":"roryc89"},"datePublished":"2024-07-19T04:47:42Z","url":"https://github.com/purescript/purescript/issues/4545"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9448b876-f14d-339b-5b18-a59839d2d189 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFF8:2B25A0:1BF3CD:2677C1:6AFBADBD |
| html-safe-nonce | 0c24ea1436850a611af690bdef861314bb3f4a86bd610990e637d86193a50666 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkY4OjJCMjVBMDoxQkYzQ0Q6MjY3N0MxOjZBRkJBREJEIiwidmlzaXRvcl9pZCI6Ijg1ODI4MTcyODc1MjQ1NjAzMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e92aa4b18b9840584d732fc7ed6f55dd6811afd4c071135e6cb39f7e38bdd18e |
| hovercard-subject-tag | issue:2417896839 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript/purescript/4545/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29d9073fc2edf11597a585a91bf30c62512ad0c9065e00c2ae494583b942c729/purescript/purescript/issues/4545 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29d9073fc2edf11597a585a91bf30c62512ad0c9065e00c2ae494583b942c729/purescript/purescript/issues/4545 |
| og:image:alt | Description On our project of 9877 source files (including libs), the IDE quickly consumes so much memory that it becomes hard to work with. On my 32GB Apple M2, it will be using over 20GB of memor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | roryc89 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript/purescript git https://github.com/purescript/purescript.git |
| octolytics-dimension-user_id | 6556677 |
| octolytics-dimension-user_login | purescript |
| octolytics-dimension-repository_id | 13206906 |
| octolytics-dimension-repository_nwo | purescript/purescript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13206906 |
| octolytics-dimension-repository_network_root_nwo | purescript/purescript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08c8f17f9d27054a108b8b6254e405de0151f660 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width