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

fix: 350 bug delete node or trainrunsections cause low performance #351

Merged

Conversation

aiAdrian
Copy link
Collaborator

@aiAdrian aiAdrian commented Nov 13, 2024

Description

When deleting multiple nodes or trainrun sections, it's crucial that the delete loop doesn't refresh the rendering for each deleted element. The deletions should be performed all at once at the end - only one update (refresh) should be triggered. This is now implemented and improves the performance.

#350

Issues

Checklist

  • This PR contains a description of the changes I'm making
  • I've read the Contribution Guidelines
  • I've added tests for changes or features I've introduced
  • I documented any high-level concepts I'm introducing in documentation/
  • CI is currently green and this is ready for review

@aiAdrian aiAdrian linked an issue Nov 13, 2024 that may be closed by this pull request
3 tasks
@aiAdrian aiAdrian changed the title 350 bug delete node or trainrunsections cause low performance fix: 350 bug delete node or trainrunsections cause low performance Nov 14, 2024
Copy link
Collaborator

@louisgreiner louisgreiner left a comment

Choose a reason for hiding this comment

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

Tested with a 50+ nodes netzgrafik, it is working way better 👍

@aiAdrian aiAdrian merged commit 72f8599 into main Nov 14, 2024
7 checks passed
@aiAdrian aiAdrian deleted the 350-bug-delete-node-or-trainrunsections-cause-low-performance branch November 14, 2024 14:47
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.

[Bug]: Delete node or trainrunSections cause low performance
2 participants