Title: Optimize performance of setCategoryIndex by hy9be · Pull Request #1544 · plotly/plotly.js · GitHub
Open Graph Title: Optimize performance of setCategoryIndex by hy9be · Pull Request #1544 · plotly/plotly.js
X Title: Optimize performance of setCategoryIndex by hy9be · Pull Request #1544 · plotly/plotly.js
Description: Open-source JavaScript charting library behind Plotly and Dash - Optimize performance of setCategoryIndex by hy9be · Pull Request #1544 · plotly/plotly.js
Open Graph Description: I added an auxiliary map for ax._categories array to avoid using Array.prototype.indexOf function searching for the existence of a category. I tested here and observed ~20% performance improvements...
X Description: I added an auxiliary map for ax._categories array to avoid using Array.prototype.indexOf function searching for the existence of a category. I tested here and observed ~20% performance improvements...
Opengraph URL: https://github.com/plotly/plotly.js/pull/1544
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:241444c1-9034-b72e-4474-7e84e969c0cc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AF20:16F405:422CA2F:567AB31:6A5D33FB |
| html-safe-nonce | 65980bb3f2316b0607c3d3a2d6efead786864076a6310cba55dacd504ac2c4c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjIwOjE2RjQwNTo0MjJDQTJGOjU2N0FCMzE6NkE1RDMzRkIiLCJ2aXNpdG9yX2lkIjoiMjcxMTIwMzMwNDI5NDkyMTIxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a97fbd230f77b9964c2aa06bf95078c880efc3388f74c78d9eef61fc32f40209 |
| hovercard-subject-tag | pull_request:113736984 |
| 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/plotly/plotly.js/pull/1544/commits |
| twitter:image | https://opengraph.githubassets.com/9a1c767e35d2cf96adddb5db87086577874902d8be6f1d8b5197438be8d60a4d/plotly/plotly.js/pull/1544 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a1c767e35d2cf96adddb5db87086577874902d8be6f1d8b5197438be8d60a4d/plotly/plotly.js/pull/1544 |
| og:image:alt | I added an auxiliary map for ax._categories array to avoid using Array.prototype.indexOf function searching for the existence of a category. I tested here and observed ~20% performance improvements... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hy9be |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-cache |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width