-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance hit in completing numbered list #96
Comments
Could you share a sample file here? |
Here's the repository that has the example: https://github.com/ElectrifyPro/cautious-spoon There's two files,
|
Thanks. Could you check if |
Yes, setting that option to 0 does indeed fix the delay. |
The issue here is that
Having to parse each bullet 2x when walking the list is pretty normal. Improving the performance of parse bullet is what will help here. |
I have a PR to help address this here: #107 Would you be able to check if it helps your case? You'll likely have to add my clone as an origin and checkout my branch. |
Unfortunately there still is a delay when I tried your fix on "Plug 'dkarter/bullets.vim'
Plug 'harshad1/bullets.vim', {'branch': 'performance_improvements'} Also is it necessary for |
Any improvement though?
Technically, no. But in general you need to walk to the top of the list and then back to the bottom. I am looking at strategies to address this. Reducing the calls to |
No, there isn't any noticeable improvement as far as I can tell |
I have a .txt file that has a section in the middle with this format (the list is 30-ish entries long):
When I place my cursor on the line
12. Title 12
and presso
, there is a ~1 second pause before the next13.
line is added. However, when I remove all the lines with• example
and repeat the two above steps, there is no pause. I found that the more• example
lines that I add in between a numbered entry, the pause gets worse and worse.The text was updated successfully, but these errors were encountered: