Skip to content

Improve ScriptLanguage get keyword API#106374

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
YYF233333:opt_script_get_keyword
May 19, 2025
Merged

Improve ScriptLanguage get keyword API#106374
Repiteo merged 1 commit into
godotengine:masterfrom
YYF233333:opt_script_get_keyword

Conversation

@YYF233333
Copy link
Copy Markdown
Contributor

This PR mainly focuses on codestyle improvements. There should be some performance gains (by eliminating unneeded copies), but I don't think these functions will become a bottleneck.

@YYF233333 YYF233333 requested review from a team as code owners May 14, 2025 03:36
@YYF233333 YYF233333 changed the title Optimize ScriptLanguage get keyword API Improve ScriptLanguage get keyword API May 14, 2025
Copy link
Copy Markdown
Member

@Ivorforce Ivorforce left a comment

Choose a reason for hiding this comment

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

Looks good! Considering GDExtension already uses Vector, this should bring everything in line (and make calls much faster meanwhile).
Just in case I'm missing anything about the APIs, it would be good to get a GDExtension or script languages review too.
Edit: And I think this one needs a squash too.

@Ivorforce Ivorforce added this to the 4.5 milestone May 14, 2025
@Ivorforce Ivorforce requested a review from a team May 14, 2025 07:07
@YYF233333
Copy link
Copy Markdown
Contributor Author

Edit: And I think this one needs a squash too.

Seperate these changes to make review easier. Please tell me if this is ready for merge and I'll squash commits.

@YYF233333
Copy link
Copy Markdown
Contributor Author

Seems no more reviews. I think it's time to suqash commits.

@YYF233333 YYF233333 force-pushed the opt_script_get_keyword branch from 9739f26 to 67eaaf3 Compare May 17, 2025 02:54
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The p_language check is now redundant since you check it above.

@YYF233333 YYF233333 force-pushed the opt_script_get_keyword branch from 67eaaf3 to 1384e82 Compare May 17, 2025 10:43
@Repiteo Repiteo merged commit 2332195 into godotengine:master May 19, 2025
20 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented May 19, 2025

Thanks!

@YYF233333 YYF233333 deleted the opt_script_get_keyword branch May 19, 2025 13:10
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.

4 participants