Investigate using vim9 vimscript for speed improvement
Official development repository for Vim's builtin TOhtml plugin
Brought to you by:
fritzophrenic
Recent work in Vim is adding a bunch of new scripting syntax that is intended to improve performance.
2html.vim contains lots of hacks to try squeezing out as much performance as possible with the old vim script. Try rewriting with new features for speed!
Note: Neovim cannot currently support vim9script, so maybe hold off on this until final solution is reached regarding vim9sript/Neovim. I guess there is some sort of compiler that might help in the future? https://github.com/vim/vim/pull/13039#issuecomment-1712859783