-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
implement Copy for Client? #17
Comments
This isn't that big of an issue now that While |
A quick grep through examples/ directory reveal 22 clones, 15 of which is the client, and the other mainly due to k8s-openapi being lax with Option. If our API requires that much cloning for just the simplest examples, then it will be quite distracting in real situations. Saw tons of distracting clones today caused by our api in h2o mostly like this: I think maybe we should rethink this. As it stands people are forced to think about whether to duplicate a Generally, I think, the small amount of memory this uses is not really a huge concern, it should be quickly reclaimed, and not likely to cause a bottleneck for a controller. BUT; it's an awkward thing to present in the api. We could hide all this (everything's private anyway) in an Arc'd inner like reqwest does, and derive Copy |
You can't implement |
Closing this as infeasible. |
we always clone this for passing between threads/informers anyway so might as well hide the clone call
The text was updated successfully, but these errors were encountered: