"$kak_opt_static_words" push and pop operations for a large number of fields

Unless this issue has been fixed

Repeated adds and removes should generally be avoided. You’d be better off just setting the entire option once.

You could make the module more performant by calling the hook less, for example instead of on InsertIdle you could just check for InsertKey ‘;’ and then only run the update if the modified line was an import (and do similar for deleting).

Finally you could make it Async by forking the awk script and having it callback with the kak cli rather than directly to eval. Although I’d guess your performance issues are due to all the option modification and not the awk script.