René's URL Explorer Experiment


Title: Faster extendTraces · Issue #2358 · plotly/plotly.js · GitHub

Open Graph Title: Faster extendTraces · Issue #2358 · plotly/plotly.js

X Title: Faster extendTraces · Issue #2358 · plotly/plotly.js

Description: I originally posted these comments to the plotly.js forum, before realizing that they apparently belong here. Recently Etienne wrote in the forum of the intent to speed up extendTraces, to make incremental "live" graphing much faster. Cu...

Open Graph Description: I originally posted these comments to the plotly.js forum, before realizing that they apparently belong here. Recently Etienne wrote in the forum of the intent to speed up extendTraces, to make inc...

X Description: I originally posted these comments to the plotly.js forum, before realizing that they apparently belong here. Recently Etienne wrote in the forum of the intent to speed up extendTraces, to make inc...

Opengraph URL: https://github.com/plotly/plotly.js/issues/2358

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Faster extendTraces","articleBody":"I originally posted these comments to the plotly.js forum, before realizing that they apparently belong here. Recently Etienne wrote in the forum of the intent to speed up extendTraces, to make incremental \"live\" graphing much faster. Currently I measure no significant difference between extendTraces and handing all of the data every time to Plotly. At the risk of stating what everyone knows, in my work on VPython over the years I’ve done several things to speed up incremental plotting. Perhaps these comments will be useful to the Plotly developers.\r\n\r\n(1) When autoscaling, whenever a new point requires changing the scale, change the scale by a few percent more than needed to include the new point, so that there’s a good chance that a few later points can fit without readjusting the scale.\r\n\r\n(2) For a lines object with no markers, discard any point that would be placed within a few pixels of the most recently plotted point. I’m doing this with my use of Plotly, and it can make a huge difference. Even without major improvements for incremental plotting, it would be useful for there to be a parameter to tell Plotly to discard points instead of me having to do the discarding; after all, Plotly knows more than I do about the pixel positioning. (The reason not to do this if there are markers is that in general markers on lines are important indications of endpoints of line segments.)\r\n\r\n(3) Provide an “interval=N” option for all types of objects, in which Plotly only adds to the plot the Nth point, discarding the rest.\r\n\r\nAlso, my situation is one where intensive computations are coupled with incremental graphing of results of those on-going computations, in synchrony with the computations and associated 3D visualizations (using VPython). Both the JavaScript computations and the graphing are of course run off setTimeout(), and the challenge is to use as big a fraction of the second as possible for both activities.\r\n\r\nJust before executing extendTraces I set lock = true, and when there arrives a callback from extendTraces that Plotly has finished, I set lock = false. While Plotly does its work (apparently with many calls to setTimeout), computations also run when they can, generating additional graphing data which however cannot be sent immediately to Plotly. So during the time that lock is true, data to be sent to Plotly is pushed to a list, waiting for the lock to become false, at which time extendTraces is driven again from the accumulated data (and the list of pending output is cleared).\r\n\r\nMy suggestion is that in a revision of extendTraces it would be very helpful to the Plotly user to have this lock machinery embedded in Plotly itself. In other words, extendTraces would be callable at any time but would actually trigger graphing (and clear the task list) when ongoing Plotly updates were complete. This would free up the Plotly-using program from having to implement this lock machinery itself.\r\n\r\nBruce Sherwood","author":{"url":"https://github.com/BruceSherwood","@type":"Person","name":"BruceSherwood"},"datePublished":"2018-02-12T15:47:48Z","url":"https://github.com/plotly/plotly.js/issues/2358"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e2f2fd58-26ad-29bf-043a-b89982593916
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCE34:157C65:2937BA1:36F92C6:6B01BD00
html-safe-nonce62f3eecac5f3325c472f7f9f5a3793bde764fa891c93b3f6bfc2d79fedcfb0cb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTM0OjE1N0M2NToyOTM3QkExOjM2RjkyQzY6NkIwMUJEMDAiLCJ2aXNpdG9yX2lkIjoiODg3MzAxMTY0MDU1MTk4MDI4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb35269b6463742bcffc379b809fb694af969a305030a6b4463e9fbbb39c92ecb
hovercard-subject-tagissue:296422533
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/2358/issue_layout
twitter:imagehttps://opengraph.githubassets.com/90ac809c9606b5f6450efeeb7e345aac6bf9b0c89716994cef5641a2df56ac17/plotly/plotly.js/issues/2358
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/90ac809c9606b5f6450efeeb7e345aac6bf9b0c89716994cef5641a2df56ac17/plotly/plotly.js/issues/2358
og:image:altI originally posted these comments to the plotly.js forum, before realizing that they apparently belong here. Recently Etienne wrote in the forum of the intent to speed up extendTraces, to make inc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBruceSherwood
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id45646037
octolytics-dimension-repository_nwoplotly/plotly.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id45646037
octolytics-dimension-repository_network_root_nwoplotly/plotly.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/2358#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F2358
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F2358
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.js
Reloadhttps://github.com/plotly/plotly.js/issues/2358
Reloadhttps://github.com/plotly/plotly.js/issues/2358
Reloadhttps://github.com/plotly/plotly.js/issues/2358
plotlyhttps://github.com/plotly
plotly.jshttps://github.com/plotly/plotly.js
Codehttps://github.com/plotly/plotly.js
Issues726 (726)https://github.com/plotly/plotly.js/issues
Pull requests84 (84)https://github.com/plotly/plotly.js/pulls
Actionshttps://github.com/plotly/plotly.js/actions
Security and qualityhttps://github.com/plotly/plotly.js/security
Insightshttps://github.com/plotly/plotly.js/insights
https://github.com/plotly/plotly.js
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/2358
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/2358
Faster extendTraceshttps://github.com/plotly/plotly.js/issues/2358#top
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com/BruceSherwood
BruceSherwoodhttps://github.com/BruceSherwood
on Feb 12, 2018https://github.com/plotly/plotly.js/issues/2358#issue-296422533
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Feb 13, 2018https://github.com/plotly/plotly.js/issues/2358#issuecomment-365290641
https://github.com/BruceSherwood
BruceSherwoodhttps://github.com/BruceSherwood
on Feb 14, 2018https://github.com/plotly/plotly.js/issues/2358#issuecomment-365639789
etpinardhttps://github.com/etpinard
on Feb 14, 2018https://github.com/plotly/plotly.js/issues/2358#event-1474105321
etpinardhttps://github.com/etpinard
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
on Feb 14, 2018https://github.com/plotly/plotly.js/issues/2358#event-1474105520
etpinardhttps://github.com/etpinard
type: performancehttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22type%3A%20performance%22
on Jul 4, 2018https://github.com/plotly/plotly.js/issues/2358#event-1716883618
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Jan 2, 2020https://github.com/plotly/plotly.js/issues/2358#issuecomment-570310217
#4455https://github.com/plotly/plotly.js/issues/4455
codehttps://codepen.io/Ram97/pen/qBEPPmy
https://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
on Jun 11, 2024https://github.com/plotly/plotly.js/issues/2358#issuecomment-2161230175
@gvwilsonhttps://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
completedhttps://github.com/plotly/plotly.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 11, 2024https://github.com/plotly/plotly.js/issues/2358#event-13120290602
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/2358
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/2358
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.