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

Speed up closing multiple scripts #78604

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jun 23, 2023

Closing multiple scripts is a notoriously slow operation. I did a quick investigation and every time a tab closes, it calls multiple methods that update the editor's state. This PR makes them called only once, which results in visible speed up (though it could still be faster).

@KoBeWi KoBeWi added this to the 4.x milestone Jun 23, 2023
@KoBeWi KoBeWi requested a review from a team as a code owner June 23, 2023 09:25
@YuriSizov YuriSizov modified the milestones: 4.x, 4.2 Jun 23, 2023
@YuriSizov YuriSizov merged commit c457480 into godotengine:master Jul 12, 2023
@KoBeWi KoBeWi deleted the gotta_close_fast branch July 12, 2023 15:28
@YuriSizov
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants