Closed danth closed 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.
https://github.com/AlphaMycelium/pathfinder.vim/blob/ee5284664b2a1d661d5e615086560d3575763759/plugin/main.vim#L91-L97