-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
High CPU Usage and unrecognized characters in .js file #315
Comments
I have the same issue on Windows version v1.3.5. It seems that this issue was introduced in 0.2.7, so I downgraded it to 0.2.6 and it works fine. |
I was able to verify that on my machine, a Performance profile showed a very large amount of CPU usage from the annotator plugin when it was enabled and Obsidian was idle. When I disabled it, the CPU usage was much lower and flat. Looking at what @Violin9906 suggested, I tested out disabling the app.plugins.getPlugin("obsidian-annotator").styleObserver.unwatch() When I turned it off, the results were as though it was not enabled -- mostly idle. Turning it back on: app.plugins.getPlugin("obsidian-annotator").styleObserver.watch() had the CPU usage go way up again. The pattern looked something like this: In the code, it looks like regardless of what At present, I also noticed that my Would you be open to a pull request that utilized |
Whenever I enable the plugin, the CPU usage of Obsidian will start to increase and stay elelvated, and the Obsidian app simply because too slow to use. Once I disable the plugin then everthing normalized.
Then I went to the plugin folder and tried to open the .js file to see if I can make sense of the problem. But then I saw these unrecognized wierd stuff (see the screenshot blow)... Not sure what is happening here but it's an absolute pity for me not being able to use the plugin. Could you please help? Thank you!
The text was updated successfully, but these errors were encountered: