-
Notifications
You must be signed in to change notification settings - Fork 7
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
Avoid copy when the plugin returns #13
Avoid copy when the plugin returns #13
Conversation
Some notes: Once in a lifetime !Functions now return Technically the data returned by a function should no longer be accessible from inside the plugin after the return (if the plugin respect the spirit of the protocol), so maybe we could get away with the lifetime if absolutely needed (using a Why not return
|
1455dcb
to
6fd9c88
Compare
This looks great, thanks a ton, it doesn't seem to be missing anything either, are you okay with me merging it? <3 |
Oh wait, rereading this I see I slightly messed up the documentation |
6fd9c88
to
dfaf3c5
Compare
Ok, looks good to me ! |
…copy Avoid copy when the plugin returns
This should avoid copying the data until another function is called.