Title: Optimize Affine2D transforms · Issue #22191 · matplotlib/matplotlib · GitHub
Open Graph Title: Optimize Affine2D transforms · Issue #22191 · matplotlib/matplotlib
X Title: Optimize Affine2D transforms · Issue #22191 · matplotlib/matplotlib
Description: To address @timhoffm's other comment ("Does it still make sense to keep Affine2D._mtx as a numpy array if we only do element-wise operations?"): I'm quite convinced the whole transform stack would be faster if the transformation matrix w...
Open Graph Description: To address @timhoffm's other comment ("Does it still make sense to keep Affine2D._mtx as a numpy array if we only do element-wise operations?"): I'm quite convinced the whole transform stack would ...
X Description: To address @timhoffm's other comment ("Does it still make sense to keep Affine2D._mtx as a numpy array if we only do element-wise operations?"): I'm quite convinced the whole tran...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22191
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Optimize Affine2D transforms","articleBody":"\u003e To address @timhoffm's other comment (\"Does it still make sense to keep Affine2D._mtx as a numpy array if we only do element-wise operations?\"): I'm quite convinced the whole transform stack would be faster if the transformation matrix was not a numpy array (because 3x3 is a size where the numpy's overhead is generally bigger than the gains from vectorization), but changing everything at once (even better would be to move things to C, but using plain C structs (or equivalently C++ objects) to store the coefficients) would be quite a big PR. So I'm doing the easy parts first :-)\r\n\r\n_Originally posted by @anntzer in https://github.com/matplotlib/matplotlib/pull/22119_","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2022-01-11T01:44:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/22191/matplotlib/issues/22191"}
| 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:270ea1e9-8744-5983-fe6d-70fc2afd6bc9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9374:21831D:1EFF977:28F49FF:6A51EB4F |
| html-safe-nonce | 16da6fd044ffe7d5f7bc3dc451a3f0ba60bcc7622e55e150096fc85efb968905 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mzc0OjIxODMxRDoxRUZGOTc3OjI4RjQ5RkY6NkE1MUVCNEYiLCJ2aXNpdG9yX2lkIjoiMjE4ODg2OTcyMjcxOTc3NTU2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c6ac3190b924cece1e096f853719eb49a6b19d38c6586d1c89b185042022bf82 |
| hovercard-subject-tag | issue:1098561650 |
| 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/22191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/34ee4fc4cd9093ae17b4cd238114e8bc4dbe908e41edf1de6f2da90ec56cc0b2/matplotlib/matplotlib/issues/22191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/34ee4fc4cd9093ae17b4cd238114e8bc4dbe908e41edf1de6f2da90ec56cc0b2/matplotlib/matplotlib/issues/22191 |
| og:image:alt | To address @timhoffm's other comment ("Does it still make sense to keep Affine2D._mtx as a numpy array if we only do element-wise operations?"): I'm quite convinced the whole transform stack would ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | QuLogic |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width