https://github.com/levchak0910/vue-ssr-computed-memory-leak
https://github.com/levchak0910/vue-ssr-computed-memory-leak
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/levchak0910/vue-ssr-computed-memory-leak
- Owner: levchak0910
- Created: 2022-01-04T18:50:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-05T14:43:53.000Z (over 3 years ago)
- Last Synced: 2025-02-01T16:48:46.870Z (4 months ago)
- Language: JavaScript
- Homepage: https://github.com/vuejs/vue-next/issues/5208
- Size: 242 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vue SSR memory leak when using computed
## Steps to reproduce
#### For nuxt
```bash
cd nuxt
yarn install
yarn c # build app; run server in production mode; make performance test
```Result - memory leak: constant increasing in tab "Memory Usage"
After test move to `/nuxt/Post.vue` and change
```diff
-
- 1
+ 1
+
``````bash
yarn c # run the test again
```Result - **no** memory leak: approximate usage of memory around 200Mb (after huge jump to 1Gb, maybe some nuxt stuff)
#### For vite
```bash
cd vite
yarn install
yarn c # build app; run server in production mode; make performance test
```Result - memory leak: constant increasing in tab "Memory Usage"
After test move to `/vite/src/Post.vue` and change
```diff
-
- 1
+ 1
+
``````bash
yarn c # run the test again
```Result - **no** memory leak: approximate usage of memory around 150Mb
