Skip to content

Add willReadFrequently to 2d canvas contexts to heatmap - #6741

Merged
archmoj merged 1 commit into
plotly:masterfrom
bebeal:addWillReadFrequently
Oct 4, 2023
Merged

Add willReadFrequently to 2d canvas contexts to heatmap#6741
archmoj merged 1 commit into
plotly:masterfrom
bebeal:addWillReadFrequently

Conversation

@bebeal

@bebeal bebeal commented Sep 30, 2023

Copy link
Copy Markdown
Contributor

fix for #6740

This change adds the willReadFrequently:true 2d context creation
attribute to the heatmap plotly. This is a performance hint that tells
the browser to optimize for readbacks.

See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently

@bebeal bebeal changed the title Add willReadFrequently to 2d canvas contexts to heatmap Add willReadFrequently to 2d canvas contexts for heatmap Sep 30, 2023
@bebeal bebeal changed the title Add willReadFrequently to 2d canvas contexts for heatmap Add willReadFrequently to 2d canvas contexts to heatmap Sep 30, 2023
@archmoj archmoj added bug something broken type: performance labels Oct 4, 2023
@archmoj

archmoj commented Oct 4, 2023

Copy link
Copy Markdown
Contributor

Looking good.
Please add draftlogs/6741_fix.md as described here .
Thank you!

@archmoj

archmoj commented Oct 4, 2023

Copy link
Copy Markdown
Contributor

This PR is the follow up of #6084.

@archmoj

archmoj commented Oct 4, 2023

Copy link
Copy Markdown
Contributor

No need for the draftlog. I'll mention this PR in the release changelog.
Thank you!
💃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants