danth / pathfinder.vim

Vim plugin to suggest better movements
MIT License
290 stars 4 forks source link

Use a priority queue for improved performance #8

Closed danth closed 4 years ago

danth commented 4 years ago

https://github.com/AlphaMycelium/pathfinder.vim/blob/ee5284664b2a1d661d5e615086560d3575763759/plugin/main.vim#L91-L97

danth commented 4 years ago

This can possibly be done by migrating to Python, which includes a priority queue in its standard library. Most Vim builds come with the +python3 feature nowadays so it shouldn't cause too much of a problem.

Using a language other than Vimscript is going to be necessary at some point if we want to do anything asynchronously, so I think it's best to switch it now while the codebase is simple.