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

Reduce time to change cursor #1375

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

beru
Copy link

@beru beru commented Oct 4, 2024

When an element has large number of descendant elements, changing its style cusor takes some time on Chromium because of style recalculations. https://issues.chromium.org/issues/40493007

This becomes an issue because Netron changes mouse cursor before and after of panning the graph.

The original code changes container's style.cusor but it's slow when the container has lots of descendant elements.

This can be confirmed with models like efficientdet-d3.onnx file. The slow response of pointerdown (due to changing mouse cursor) is quite obvious with not very fast computers such as Rasberry Pi 5.

#1013 is related.

When an element has large number of child elements, changing its style cusor is slow because of style recalculations.
https://issues.chromium.org/issues/40493007

The original codes changes container's style.cusor but it's slow when the container has lots of child elements.
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.

1 participant