Skip to content

Reuse compiled model methods across models #1083

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

andrjohns
Copy link
Collaborator

Submission Checklist

  • Run unit tests
  • Declare copyright holder and agree to license (see below)

Summary

Updated implementation of #894.

Now that we use the standard Windows toolchain, I can resurrect the PR for caching the compilation of model methods. Users will now only have to compile the model methods once for one model, and future calls for other models to $init_model_methods() will simply link the existing cmdstan model object against the cached compiled model methods.

Copyright and Licensing

Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Andrew Johnson

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

@jgabry
Copy link
Member

jgabry commented Apr 29, 2025

future calls for other models to $init_model_methods() will simply link the existing cmdstan model object against the cached compiled model methods.

Awesome!

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