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

Added Open and LoadWithCompiled to Host methods #51

Closed
wants to merge 2 commits into from

Conversation

Ice3man543
Copy link

Issue #, if available:
Closes #50

Description of changes:
Added Open and LoadWithCompiled to Host interface methods.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -183,6 +183,145 @@ func genHost(g *protogen.GeneratedFile, f *fileInfo, service *serviceInfo) {
service.GoName,
))

// Open and LoadWithCompiled Functions
Copy link
Contributor

Choose a reason for hiding this comment

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

@Ice3man543 , it's seem to applicable approach, but for common functionality Load can be combination of the Open and LoadWithCompile

Also cache option recommenced by @codefromthecrypt can be validated to choose this approach or compilation cache.

Copy link
Author

Choose a reason for hiding this comment

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

I've tried the cache approach and it's working fine. Closing!

Copy link
Contributor

Choose a reason for hiding this comment

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

I recently came to more or less same issue, could you please share some links or docs on what is "cache approach" in context of go-plugin that you refer to?

@Ice3man543 Ice3man543 closed this May 14, 2023
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.

Allow using CompiledModule from previous call instead of loading from disk
3 participants