artisticat1 / obsidian-latex-suite

Make typesetting LaTeX as fast as handwriting through snippets, text expansion, and editor enhancements
MIT License
1.24k stars 49 forks source link

[BUG] LaTeX Suite will significantly affect Obsidian’s performance. #320

Open CamWam opened 1 month ago

CamWam commented 1 month ago

Description

I once posted this https://forum.obsidian.md/t/i-have-tested-the-13900k-3090-7950x-4090-and-7950x3d-4090-and-there-is-a-serious-issue-with-canvas-performance-no-configuration-can-smoothly-run-a-canvas-card-with-26-000-characters-of-content/81855/19 on the Obsidian forum. After testing, I found that the input lag in canvas and markdown caused by plugins is mainly due to LaTeX Suite.

Generally, when the input in canvas cards and markdown exceeds 10,000~25,000 characters (markdown documents can be higher), enabling the LaTeX Suite plugin will cause lag in English, Chinese Pinyin, and LaTeX input. Note that this input lag also occurs with regular Chinese and English input. Because the $ ... $ mode cannot use the tab key to automatically input &, I mainly use version 1.7.4

inputting.zip

CamWam commented 1 month ago

I tested the latest version 1.9.4 and the situation is the same. Even without inputting LaTeX, enabling the plugin causes lag when typing in both English and Chinese. The lag is more noticeable in canvas cards than in markdown files. Generally, canvas cards start to lag at around 10,000 to 20,000 characters, while markdown files may start to lag at around 40,000 characters. Disabling the LaTeX suite and restarting the program significantly alleviates the issue.