Vim's pydo/py3do functions run the template finder function 3020 times, freezing up vim for ~10 seconds. py / py3 commands only run it once and freeze vim for < ~1 second Note: This is problem is only for the initial search, but 10 seconds is a long wait.
Specs:
Vim: Vim 9 (64bit)
Python2 & Python3 versions tested
OS: Windows 10 & Pop!_OS/Ubuntu
Illustrating the Issue
add Func to django-plus.vim/bin/template_finder.py
def record_start():
from datetime import datetime
logger = open('/path/to/my/plugins/django-plus.vim/start_times.txt', 'a')
logger.write('{0}\n'.format(datetime.now()))
logger.close()
def djangoplus_find_templates(cwd, app_paths, cmdline=False):
record_start()
# do the normal stuff
Goto a view's reverse function
ci' or ci"
Type something
Check file
Already fixed with 421aff7e494e6563d4f5ee3ffe67f974c051c336
As the original repo is very cold and I don't want to spam pull requests
Vim's pydo/py3do functions run the template finder function 3020 times, freezing up vim for ~10 seconds.
py
/py3
commands only run it once and freeze vim for < ~1 secondNote: This is problem is only for the initial search, but 10 seconds is a long wait.
Specs:
Illustrating the Issue
add Func to
django-plus.vim/bin/template_finder.py
ci'
orci"
Already fixed with 421aff7e494e6563d4f5ee3ffe67f974c051c336
As the original repo is very cold and I don't want to spam pull requests