Title: speedup: cache entry points by brondsem · Pull Request #2979 · pygments/pygments · GitHub
Open Graph Title: speedup: cache entry points by brondsem · Pull Request #2979 · pygments/pygments
X Title: speedup: cache entry points by brondsem · Pull Request #2979 · pygments/pygments
Description: Pygments is a generic syntax highlighter written in Python - speedup: cache entry points by brondsem · Pull Request #2979 · pygments/pygments
Open Graph Description: I found that multiple calls to get_lexer_for_filename were somewhat slow in my environment, due to find_plugin_lexers discovering entry points every time it ran. Its interesting that pkg_resources ...
X Description: I found that multiple calls to get_lexer_for_filename were somewhat slow in my environment, due to find_plugin_lexers discovering entry points every time it ran. Its interesting that pkg_resources ...
Opengraph URL: https://github.com/pygments/pygments/pull/2979
X: @github
Domain: redirect.github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:bdec4241-388e-03f8-7ec4-1d68bb7641ae |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 837A:2A0EBE:48AE775:60D202A:6A654061 |
| html-safe-nonce | 73ef210d706059a6e1032f1e42a47ccee0763a781618e16f68c14f344cdf9870 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzdBOjJBMEVCRTo0OEFFNzc1OjYwRDIwMkE6NkE2NTQwNjEiLCJ2aXNpdG9yX2lkIjoiMTA1OTIxNjM4ODEyMzg2OTI4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9a7aa0b71100e02dfbd98acd1f8ce56caeca763986115d16bd4c4aa3ef6d7cdc |
| hovercard-subject-tag | pull_request:2925831878 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/pygments/pygments/2979/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/b0d1b37364d7d94d0674252389d2530b8dc65f870cd25c56e708c5258f335aaa/pygments/pygments/pull/2979 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0d1b37364d7d94d0674252389d2530b8dc65f870cd25c56e708c5258f335aaa/pygments/pygments/pull/2979 |
| og:image:alt | I found that multiple calls to get_lexer_for_filename were somewhat slow in my environment, due to find_plugin_lexers discovering entry points every time it ran. Its interesting that pkg_resources ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brondsem |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-cache |
| go-import | github.com/pygments/pygments git https://github.com/pygments/pygments.git |
| octolytics-dimension-user_id | 50935516 |
| octolytics-dimension-user_login | pygments |
| octolytics-dimension-repository_id | 205564111 |
| octolytics-dimension-repository_nwo | pygments/pygments |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205564111 |
| octolytics-dimension-repository_network_root_nwo | pygments/pygments |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width