Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match lexers and formatters by extension separatly #2328

Merged
merged 1 commit into from
Jan 31, 2023

Commits on Jan 31, 2023

  1. Revert "Remove filename pattern caches (pygments#2153)"

    This introduced a performance regession. While it is true that
    fnmatch already uses functools.lru_cache, that cache is limited to 256
    on python 3.10 and older and we have over 1000 matching patterns, which
    means the cache is evicted entirely on every iteration.
    
    This reverts commit 951c894.
    dirkmueller committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    0a9a56b View commit details
    Browse the repository at this point in the history