You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this isn't ideal since the copies can be expensive and the list sizes can be significant.
We already wrap the list within a smart pointer like an Arc, and clone that instead of cloning the list and expose the wrapper to the rest of the code and filter chain - so that the overhead becomes a counter increment vs of a list copy.
e.g
pubstructEndpoints(Arc<Vec<EndPoint>>);
and pass this type in DownstreamContext as endpoints.
The text was updated successfully, but these errors were encountered:
This exposes `UpstreamEndpoints` to filters. Since filters
can change the list of endpoints passed to them, the wrapper
includes logic that instead tracks changes made by filters
to the list.
Fixes#138
* Add wrapper over Endpoints
This exposes `UpstreamEndpoints` to filters. Since filters
can change the list of endpoints passed to them, the wrapper
includes logic that instead tracks changes made by filters
to the list.
Fixes#138
Currently, we make a copy of the list of endpoints for every packet that flows through the system
https://github.com/googleforgames/quilkin/blob/master/src/proxy/server.rs#L155
this isn't ideal since the copies can be expensive and the list sizes can be significant.
We already wrap the list within a smart pointer like an Arc, and clone that instead of cloning the list and expose the wrapper to the rest of the code and filter chain - so that the overhead becomes a counter increment vs of a list copy.
e.g
and pass this type in
DownstreamContext
as endpoints.The text was updated successfully, but these errors were encountered: