8000 feat: ffi updates by fjebaker · Pull Request #60 · fjebaker/SpectralFitting.jl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: ffi updates #60

New issue
8000

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 4 commits into from
Sep 21, 2023
Merged

feat: ffi updates #60

merged 4 commits into from
Sep 21, 2023

Conversation

fjebaker
Copy link
Owner

No description provided.

Allow downstream models to overwrite the unsafe FFI call, so that
specialized behaviour can be mandated. Additionally add a `type` kwarg
to the XSPEC macro that adds a dispatch to convert incoming array types
on the fly.

Results in an approx 20% speedup for XSPEC model evaluations, with fewer
allocations.
@fjebaker fjebaker merged commit d8ca4d9 into main Sep 21, 2023
@fjebaker fjebaker deleted the fergus/ffi-updates branch September 21, 2023 21:53
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.

1 participant
0