Closed xieve closed 10 months ago
Hi, thanks for reporting.
The current implementation of the updating process of equation numbers and informChange
(which is a part of MathLinks) are quite inefficient, and I suspect this is the cause of your problem. I'm planning to rewrite it to improve performance, and it might resolve the issue.
Sorry for the inconvenience, but please wait for the next release!
@xieve Probably I will be able to have time to implement a partial fix to this on this weekend. Could you send me the profile to ushio@ms.k.u-tokyo.ac.jp ?
Hey @xieve, if you're interested, try the alpha release 2.0.0-alpha and let me know how much it helped. Of course, there are still a lot of things I can do to improve performance; it's just a work in progress.
Now version 2 is officially available from the community plugins browser in Obsidian. I think it's way more performant than version 1 and your problem will be resolved. I'm closing this issue, but feel free to open a new issue if you encounter a similar performance hit with version 2.
After running and using Obsidian for a few minutes, each render of any equation progressively gets slower, to the point where I have to type in equations "blindly" because the entire application locks up for several seconds to tens of seconds. This issue does not occur when Math Booster is deactivated. Here's a screenshot of a profiling run where I typed into an equation while this issue was occurring. I'm not sure about posting entire profiles publically, but maybe I could submit it privately somehow?
Here's my debug info: