I have recently released the
pygments-cache project, which significantly speeds up the access of lexers, formatters, styles, and filters.
It would be great to get this behavior into pygments itself, if at all possible, as load time performance is critical to a few applications I develop on (
xo) and others that I care about ('prompt_toolkit',
If you are interested, I'd be happy to put in a PR! Otherwise, feel free to redistribute
pygments-cache and make modifications (as it is BSD licensed).
Let me know what the next steps are!