zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.79k stars 3.06k forks source link

Markdown: stable 70%+ CPU usage on typing #13572

Open paulcarroty opened 4 months ago

paulcarroty commented 4 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Constantly high CPU usage on Markdown documents, the preview is off. Tested also on .js files and got 35%, which is quite high.

Environment

Zed preview 0.160.6 on Linux & Wayland

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

only prettier warnings.

Feel-ix-343 commented 4 months ago

Could it be an LSP?

paulcarroty commented 4 months ago

Tested with "enable_language_server": "false" - no difference.

UlrichAlt commented 4 months ago

Same problem here. Switching the file type to "plain text": no change, markdown seems not to be specific to the problem. Disabling language server: no change. CPU usage seems related to window size. CPU usage goes down when window is smaller.

notpeter commented 1 week ago

Is this something you're still seeing in current versions of Zed?

paulcarroty commented 1 week ago

Yes.