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

Any way to use pure C comparison callback? #13

Open
hoytech opened this issue Feb 25, 2016 · 0 comments
Open

Any way to use pure C comparison callback? #13

hoytech opened this issue Feb 25, 2016 · 0 comments

Comments

@hoytech
Copy link
Contributor

hoytech commented Feb 25, 2016

I think being able to do $DB->set_compare(sub {}) is a really neat feature, thanks for getting that working!

However, some of my comparison functions could be implemented a lot more efficiently with a simple C function instead of a perl callback. I could make an XS module return a bare function pointer in an SV, is there an easy way to install that with mdb_set_compare, or some other way to accomplish this?

Thanks!

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

No branches or pull requests

1 participant