maoschanz/gedit-plugin-markdown_preview

CPU usage

maoschanz opened this issue · 2 comments

todo

I'm going to venture a guess that your code tries to update everything in realtime all the time? If so, consider refreshing the preview using a timeout-based approach, like what was done for GTG: https://fortintam.com/blog/gtg-0-5-released/ (ctrl+F "timeout")

yes that's the issue

although in 2018 it was worse because it called the pandoc executable at each key release, nowadays at least it relies on an actual python3 module