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

Performance problems when diconnecting/reconnecting nodes #6471

Closed
2 tasks
sylwiabr opened this issue Apr 28, 2023 · 3 comments · Fixed by #6954
Closed
2 tasks

Performance problems when diconnecting/reconnecting nodes #6471

sylwiabr opened this issue Apr 28, 2023 · 3 comments · Fixed by #6954
Assignees
Labels
--bug Type: bug --low-performance p-high Should be completed in the next sprint

Comments

@sylwiabr
Copy link
Member

Discord username

No response

What type of issue is this?

Permanent – Occurring repeatably

Is this issue blocking you from using Enso?

  • Yes, I can't use Enso because of this issue.

Is this a regression?

  • Yes, previous version of Enso did not have this issue.

What issue are you facing?

When disconnecting the node by clicking on the connection -specially closer to the second node (the one that has the input connected), a significant perf drop can be observed. Connection is glued to the mouse pointer and there are issues with dropping it/reconnecting.

Expected behaviour

Disconnecting/reconnecting nodes works smoothly.

How we can reproduce it?

No response

Screenshots or screencasts

Enso_18NaPqDRuz

Enso Version

nightly 28.04.2023

Browser or standalone distribution

Standalone distribution

Browser Version or standalone distribution

standalone

Operating System

Windows

Operating System Version

No response

Hardware you are using

No response

@sylwiabr sylwiabr added --bug Type: bug triage labels Apr 28, 2023
@sylwiabr sylwiabr added this to the Design Partners milestone Apr 28, 2023
@sylwiabr sylwiabr added the p-highest Should be completed ASAP label Apr 28, 2023
@hubertp hubertp added the -gui label Apr 28, 2023
@MichaelMauderer
Copy link
Contributor

I can't seem to reproduce it. Might be worth checking it out on our reference hardware, @kazcw?

@kazcw
Copy link
Contributor

kazcw commented May 1, 2023

  1. The GUI is blocking while detaching a connection, probably while responding to updates from the backend resulting from the edit. This seems to happen consistently when disconnecting an input that causes a lot of nodes to enter the error state. It would be nice if handling these updates didn't block redraw, but first we should look at why they require so much CPU work in the frontend.
  2. Sometimes a node's output can't be reconnected. This always co-occurs with a logged warning like Internal error. Symbol ID Symbol { id: GlobalInstanceId(2221) } is not registered., however that type of warning is also observed when altering connections without observing any bug. In any case, this is a logic bug, while (1) seems like purely a performance issue. Since this bug seems to be encountered when the delay in (1) is particularly noticeable, it may be a concurrency problem.

@farmaazon farmaazon added p-high Should be completed in the next sprint and removed p-highest Should be completed ASAP labels May 2, 2023
@farmaazon farmaazon moved this from ❓New to 📤 Backlog in Issues Board May 2, 2023
@kazcw
Copy link
Contributor

kazcw commented Jun 12, 2023

(1) is fixed by #6954. (2) is #6772.

@kazcw kazcw linked a pull request Jun 12, 2023 that will close this issue
5 tasks
@mergify mergify bot closed this as completed in #6954 Jun 14, 2023
@github-project-automation github-project-automation bot moved this from 📤 Backlog to 🟢 Accepted in Issues Board Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--bug Type: bug --low-performance p-high Should be completed in the next sprint
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants