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

Improve vtables code #482

Merged
merged 3 commits into from
Nov 29, 2023
Merged

Improve vtables code #482

merged 3 commits into from
Nov 29, 2023

Conversation

webmaster128
Copy link
Member

No description provided.

Copy link
Collaborator

@chipshort chipshort left a comment

Choose a reason for hiding this comment

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

LGTM

*mut UnmanagedVector, // result output
*mut UnmanagedVector, // error message output
) -> i32,
pub query_external: Option<
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice catch!

@webmaster128
Copy link
Member Author

For the record, I am not really conviced that "vtable" is the best term here. Those are pretty much static function pointers that are the same functions for all instances. The functions itself are stored a Go module level variables, making them pretty much fixed per process. I was thinking about a more global approach getting the pointers from Go to Rust, but it would open all sorts of ordering questions. Since I don't think there is much to gain, I gave up the global approach.

@webmaster128 webmaster128 merged commit 7b6ba25 into main Nov 29, 2023
13 checks passed
@webmaster128 webmaster128 deleted the improve-vtables branch November 29, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants