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

Optimize Object::get_class_name #75797

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

reduz
Copy link
Member

@reduz reduz commented Apr 7, 2023

  • Run the static function once per class instead of one per instance.
  • Saves some memory in Object derived classes.

@reduz reduz requested a review from a team as a code owner April 7, 2023 21:34
@KoBeWi KoBeWi added this to the 4.1 milestone Apr 7, 2023
@reduz reduz force-pushed the optimize-object-get-class-name branch 2 times, most recently from f810e61 to 3479f80 Compare April 8, 2023 11:51
* Run the static function once per class instead of one per instance.
* Saves some memory in Object derived classes.
@reduz reduz force-pushed the optimize-object-get-class-name branch from 3479f80 to 8950943 Compare April 8, 2023 17:25
@akien-mga akien-mga merged commit cfab3d2 into godotengine:master Apr 8, 2023
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga changed the title Optimize Object::get_class_name Optimize Object::get_class_name Jul 5, 2023
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