-
Notifications
You must be signed in to change notification settings - Fork 1
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
Reverse stream / non-blocking control #12
Comments
There is already batching functionality in the server, but the clients don't yet expose it. Shouldn't be too hard to extend them to support this. And thanks for the offer of Patreon support, but money isn't really an issue or motivator for me - more just the fun of programming and kerbal combined! Unfortunately time is the one thing I lack, and although I do have time to maintain the mod, finding time to add larger features has been lacking recently. |
My Julia client supports this, but I'm not happy with the API yet... Also, seconded with being interested in Patreon, I, too, would like to support development :) |
I thought about how to implement this RPC buffering/batching in the Python client library. @djungelorm maybe you can comment on whether this is a good idea. This would only apply to setters, because with setters we don't need to worry about getting a return or result value back to the user.
And a flag would be needed to switch between the old and new behavior, maybe |
Here are my thoughts:
Your
( This would have the added benefits of:
|
The way I've implemented this functionality in Julia is to add a separate namespace for what I refer to as
will immediately make an RPC call to find the velocity, whereas
will return a ProcedureCall that can get passed into a later call to |
I noticed that the this snippet is quite slow, it takes around 40ms.
Is there a non-blocking interface for sending data, analogous to streams for receiving data?
EDIT: Or is there at least a way to batch the control updates into a single RPC?
Btw, a big thanks for making this mod! Have you considered opening a Patreon account for this project? I'd like to encourage future maintenance ;)
The text was updated successfully, but these errors were encountered: