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

RawGd: cache pointer to internal storage #831

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Aug 2, 2024

Avoids repeated lookups of InstanceStorage going through FFI object_get_instance_binding(), which also needs locking etc. on Godot side.

Downside is larger size of RawGd, however only for user-defined types. We could possibly get raw pointer access through the instance storage in the future.

cc @Ughuuu

Avoids repeated lookups of InstanceStorage going through FFI object_get_instance_binding(),
which also needs locking etc. on Godot side.
@Bromeon Bromeon added c: core Core components performance Performance problems and optimizations labels Aug 2, 2024
@Bromeon Bromeon force-pushed the perf/instance-caching branch from 4c594f5 to 6eeae8b Compare August 2, 2024 10:19
@GodotRust
Copy link

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

@godot-rust godot-rust deleted a comment from GodotRust Aug 2, 2024
@Bromeon Bromeon added this pull request to the merge queue Aug 2, 2024
Merged via the queue into master with commit db82b38 Aug 2, 2024
14 checks passed
@Bromeon Bromeon deleted the perf/instance-caching branch August 2, 2024 10:42
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.

2 participants