-
Notifications
You must be signed in to change notification settings - Fork 2
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
Memory usage seems high #4
Comments
This is pointing towards the schema validator running in an extra worker. I will try and reproduce your findings. |
I notice it does not happen if working in a single editor for a long time -- memory usage stays low and almost constant (92.7 Mb). |
I think I know where it comes from. The You can check by:
Btw. I also found that the |
After further testing, @JakobVogelsang and I noticed that a big part of the memory build-up comes just from plugins creating huge DOM trees (e.g. a list of all messages published or subscribed in the entire file) which are not garbage collected quickly enough after switching away from the editor plugin. This is especially problematic because we currently re-render the full DOM tree every time we switch back to an editor plugin, meaning the plugin might have rendered all its content several times before a garbage collection cycle kicks in. I propose we fix this by introducing a mechanism for keeping disabled editor plugins around in the background without updating their properties, so that they don't re-render until they become active again, and setting the |
I am able to get a great deal of memory usage by doing the following:
paws.zip
This is on Windows 10, using Chrome Version 119.0.6045.159 (Official Build) (64-bit)
I shall see if I can reproduce on Linux in some time.
It would be good to know if anyone can reproduce this issue on other browsers or other platforms.
The text was updated successfully, but these errors were encountered: