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

addUneditedChunk consumes too much memory #217

Open
hackwaly opened this issue Jun 22, 2022 · 1 comment
Open

addUneditedChunk consumes too much memory #217

hackwaly opened this issue Jun 22, 2022 · 1 comment

Comments

@hackwaly
Copy link

image

image

It seems rawSegments.push segments char by char.

vscode-profile-2022-06-23-00-15-42.heapprofile.zip

@FeldrinH
Copy link

According to https://github.com/Rich-Harris/magic-string#sgeneratemap-options- this appears to be intended behavior with hires: true. However, in vitejs/vite#11745, using this does seem to be the cause of a signifficant increase in memory usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants