Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Cursor hiccups #52

Closed
martixy opened this issue Mar 9, 2016 · 5 comments
Closed

Cursor hiccups #52

martixy opened this issue Mar 9, 2016 · 5 comments

Comments

@martixy
Copy link

martixy commented Mar 9, 2016

This is going to seem incredibly minor, but it's also rather annoying.
In very large files(somewhere above 50-60K words), the cursor starts to "hiccup"(stop) for a moment, when moving around rapidly(i.e. like when holding down an arrow key).

@titoBouzout
Copy link
Owner

Can you please share your WorldCount settings? And if possible an example text mentioning which syntax you use.

The package already includes an incredible amount of optimizations, but I know more micro optimizations for some use-cases can be added. These gonna depend of your use-case and configuration.

@martixy
Copy link
Author

martixy commented Mar 9, 2016

They're the default settings. I just installed the package. And it's Plain text, just very high word count.
And it does get worse with word count. Try something with 200K words for best/worst results.

Taking a glance at the code... it runs every .4 seconds, and that seems just about the interval of the hiccups. As good as ST's regex engine is, it's probably not that good over a million characters. So I guess if there is a way to not block the app while running, or not run when not needed, that's your solution.

@titoBouzout
Copy link
Owner

ok, thanks for the information

@titoBouzout
Copy link
Owner

There I think should be fixed what you seeing. You need to update, and restart ST

@martixy
Copy link
Author

martixy commented Mar 11, 2016

Can confirm, it's fixed. Cursor flows smoothly over large files.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants