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

Allow loading cached compiled models using hook #8336

Merged
merged 6 commits into from Oct 16, 2018

Conversation

philippjfr
Copy link
Contributor

@philippjfr philippjfr commented Oct 16, 2018

Simplified implementation for loading cached compiled models until we settle on a public API. Works by allowing users to set a cache hook which should return the compiled code given the uncompiled implementation. Offers public methods to get and set this hook, available as:

bokeh.util.compiler.get_cache_hook
bokeh.util.compiler.set_cache_hook

Also splits the compilation code a bit so that it is easier for an external library to pre-compile a model and load it in the cache hook it registers.

@philippjfr philippjfr force-pushed the philippjfr/5345_compiled_model_hook branch 2 times, most recently from 967c3ae to 091d164 Compare October 16, 2018 16:03
@bryevdv
Copy link
Member

bryevdv commented Oct 16, 2018

Merging this scaled back PR with only minor dev API hooks added. With some more experience of real world usage we can come back to adding a more public capability later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom models distribution without compiler on the server side
2 participants