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

StmtViz: Search for tooltip only in the child node #7754

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

antonysigma
Copy link
Contributor

Further cut ~5 second of StmtVisualizer rendering by searching for the tooltip text-box in the child node of the current button. Previously, the script compose the global ID with regular expression, and then search the entire DOM causing delays.

Quoting the comments from #7713:

... It still is for like a second unresponsive every time you resize the panes, but I couldn't figure out how to fix that.

Resolves: #7712 .
See also: #7713 .

cc'ed @maaz139 and @mcourteaux .

Further cut ~5 second of StmtVisualizer rendering by searching for the
tooltip text-box in the child node of the current button. Previously,
the script compose the global ID with regular expression, and then
search the entire DOM causing delays.
@antonysigma antonysigma changed the title Search for tooltip only in the child node StmtViz: Search for tooltip only in the child node Aug 10, 2023
Copy link
Contributor

@maaz139 maaz139 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Change looks good to me.

@steven-johnson steven-johnson merged commit 93514c3 into halide:main Aug 10, 2023
3 checks passed
@mcourteaux
Copy link
Contributor

Oooh, let's try this! Will report back soon.

@antonysigma antonysigma deleted the simplify-stmtviz-tooltip branch August 18, 2023 20:54
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
Search for tooltip only in the child node

Further cut ~5 second of StmtVisualizer rendering by searching for the
tooltip text-box in the child node of the current button. Previously,
the script compose the global ID with regular expression, and then
search the entire DOM causing delays.
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.

VizIR is super slow.
4 participants