Skip to content

ClassName now dynamic and faster #834

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

Merged
merged 6 commits into from
Aug 2, 2024
Merged

ClassName now dynamic and faster #834

merged 6 commits into from
Aug 2, 2024

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Aug 2, 2024

Reworks ClassName to be faster and more versatile.

It now supports arbitrary String values, not just literals. At the same time, ClassName is still Copy. Names of Godot classes or user ones created via #[derive(Godot)] should now resolve their name very quickly, not even hash is needed anymore.

Closes #792. At least the direct suspect is related to ClassName, and I think that should (hopefully) be out of the way now. If there are remaining performance problems in this context, please provide profiling information.

@Bromeon Bromeon added c: core Core components performance Performance problems and optimizations labels Aug 2, 2024
@Bromeon Bromeon added this pull request to the merge queue Aug 2, 2024
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-834

Merged via the queue into master with commit 3148d7b Aug 2, 2024
14 checks passed
@Bromeon Bromeon deleted the perf/class-name branch August 2, 2024 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: core Core components performance Performance problems and optimizations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Performance Issue] Unneeded calls to class_name::to_string_name
2 participants