Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V-analyzer slowly leaks memory over time #131

Open
4hnme opened this issue Oct 10, 2024 · 0 comments
Open

V-analyzer slowly leaks memory over time #131

4hnme opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working Confirmed

Comments

@4hnme
Copy link

4hnme commented Oct 10, 2024

Describe the bug

Whenever a struct / enum / function definition changes, v-analyzer consumes extra 1-10Mb of RAM that doesn't get freed afterwards, causing it to snowball in long running sessions

Expected Behavior

RAM consumption should remain roughly the same

Current Behavior

RAM consumption slowly goes up the more code gets changed

Reproduction Steps

  1. Open any project
  2. Change any definition several times

Possible Solution

No response

Additional Information/Context

No response

Environment details (v doctor output)

V full version: V 0.4.8 469b56e.7cdd667
OS: linux, "Manjaro Linux"
Processor: 4 cpus, 64bit, little endian, Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz

getwd: /home/username/Documents/coding/sample_project
vexe: /home/username/Documents/v/v
vexe mtime: 2024-10-10 17:31:34

vroot: OK, value: /home/username/Documents/v
VMODULES: OK, value: /home/usernamei/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.46.0
Git vroot status: weekly.2024.41-4-g7cdd6677
.git/config present: true

CC version: cc (GCC) 14.2.1 20240805
thirdparty/tcc status: thirdparty-linux-amd64 0134e9b9

Editor name

kakoune, zed

v-analyzer Version

v-analyzer version 0.0.4-beta.1.bc5b3ca

VS Code Extension Version

No response

@4hnme 4hnme added the bug Something isn't working label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Confirmed
Projects
None yet
Development

No branches or pull requests

2 participants