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

GDScript: Fix unnecessary calls to remove_parser #95115

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

rune-scape
Copy link
Contributor

@rune-scape rune-scape commented Aug 4, 2024

+fix excessive memory allocations when loading many dependant scripts
+remove excessive calls to vformat

i suspect the call to GDScriptCache::remove_parser() in ~GDScriptParserRef() may have been responsible for how common the regressions from #92616 have been, i suspect it brought out the edgecases more

fixes #95076

+fix excessive memory allocations when 'load'ing many dependant scripts
+fix excessive calls to vformat
@kus04e4ek

This comment was marked as resolved.

@mihe
Copy link
Contributor

mihe commented Aug 5, 2024

I can confirm that this pull request fixes #95076.

Copy link
Member

@vnen vnen left a comment

Choose a reason for hiding this comment

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

LGTM

@akien-mga akien-mga changed the title GDScript: Fix unnecessary calls to 'remove_parser' GDScript: Fix unnecessary calls to remove_parser Aug 5, 2024
@akien-mga akien-mga merged commit 79ae952 into godotengine:master Aug 6, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks again @rune-scape for the quick reaction time, and @mihe for the extensive testing and regression reporting!

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.

Severe performance regression when loading many GDScript files
5 participants