Title: [MNT]: mathtext.MathTextParser is slow · Issue #20821 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: mathtext.MathTextParser is slow · Issue #20821 · matplotlib/matplotlib
X Title: [MNT]: mathtext.MathTextParser is slow · Issue #20821 · matplotlib/matplotlib
Description: Summary The mathtext.MathTextParser is a performance bottleneck. I profiled my interactive app that uses PyQt and matplotlib to draw complex plots with very little text and yet significant time (20 %) is spend in the mathtext.MathTextPar...
Open Graph Description: Summary The mathtext.MathTextParser is a performance bottleneck. I profiled my interactive app that uses PyQt and matplotlib to draw complex plots with very little text and yet significant time (20...
X Description: Summary The mathtext.MathTextParser is a performance bottleneck. I profiled my interactive app that uses PyQt and matplotlib to draw complex plots with very little text and yet significant time (20...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20821
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: mathtext.MathTextParser is slow","articleBody":"### Summary\n\nThe mathtext.MathTextParser is a performance bottleneck.\r\n\r\nI profiled my interactive app that uses PyQt and matplotlib to draw complex plots with very little text and yet significant time (20 %) is spend in the mathtext.MathTextParser. See \r\n[profile_graph.pdf](https://github.com/matplotlib/matplotlib/files/6963037/profile_graph.pdf)\n\n### Proposed fix\n\nThe parser is using pyparsing internally and could potentially be speed up by switching to [lark](https://github.com/lark-parser/lark).","author":{"url":"https://github.com/HDembinski","@type":"Person","name":"HDembinski"},"datePublished":"2021-08-10T16:45:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/20821/matplotlib/issues/20821"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:589b147f-1f6f-0caf-e3a6-c2ef3b73ad49 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC2A:26FC81:9BADA1:CEEAB0:6A531585 |
| html-safe-nonce | 462cf57ff9fcf4542b9a242f379dccdd853a1481c764f84470d0054e19f90436 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzJBOjI2RkM4MTo5QkFEQTE6Q0VFQUIwOjZBNTMxNTg1IiwidmlzaXRvcl9pZCI6IjYwNzE4OTQzMzE1NTk3MTIxMzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2ed810b1165c98ce0af7326361ec5780802a345aad15b0f81e76f76336bdf59b |
| hovercard-subject-tag | issue:965130827 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/matplotlib/matplotlib/20821/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e87500aa534074e458c04c9f83542482e332af1117ce6a3c6dc974a4abfe1fb9/matplotlib/matplotlib/issues/20821 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e87500aa534074e458c04c9f83542482e332af1117ce6a3c6dc974a4abfe1fb9/matplotlib/matplotlib/issues/20821 |
| og:image:alt | Summary The mathtext.MathTextParser is a performance bottleneck. I profiled my interactive app that uses PyQt and matplotlib to draw complex plots with very little text and yet significant time (20... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HDembinski |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width