Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dataviz performance #795

Merged
merged 1 commit into from
Oct 26, 2021
Merged

Conversation

riccardoferretti
Copy link
Collaborator

The goal of this PR is to improve the performance of the graph visualization.

The work is based on the suggestion here: vasturiano/force-graph#93

Performance is improved in a few ways:

  • reduce the number of objects to paint by checking color opacity
  • reduce the number of objects to paint by checking for circles whether the border color matches the fill color
  • massively reduce the paint operations on the canvas: from one (two with border) per object, to one per color

Informally tested locally with good results.

Fixes #793 #739 #347

@riccardoferretti riccardoferretti merged commit f320af0 into master Oct 26, 2021
@riccardoferretti riccardoferretti deleted the fix/dataviz-performance branch October 26, 2021 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extension causes high cpu load
2 participants