Hello,
I have a math document that I'm working on, which is getting to a sizeable length. It has alot of math interspersed with text. Currently, it's about 100 pages.
I'm using it within VS Code on Windows, using Tinymist.
The delay between typing and seeing a preview is getting noticeably long. Sometimes, it can take 5 seconds for the preview to update. It's usually in the range of 1-5 seconds to update. It's not terrible, but it's not snappy, either. I'm not sure why its such a big range between the low and high of the update interval.
There's one function that I've identified that's eating up a bunch of the processing time. When I comment it out, it cuts the update delay by about 50%. But, I need the functionality that this function provides because it's the main formatting function for the math typesetting, so it's not realistic to remove it.
This is the function here:
<message too long for discord: the rest as a comments>