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
Building a release-mode proxy currently consumes significant resources:
Elapsed (wall clock) time (h:mm:ss or m:ss): 4:23.84
Maximum resident set size (kbytes): 23751132
With this, change we reduce memory consumption by >50%:
Elapsed (wall clock) time (h:mm:ss or m:ss): 2:18.08
Maximum resident set size (kbytes): 10144624
This is accomplished by boxing each top-level module. This is made
explicit by modifying the signature of these stack builders to
explicitly reference boxed types (instead of using `impl`).
Furthermore, we add a `BoxNewService` wherever the inner new service is
cloned into a returned `Service`. This most commonly happens with layers
like `http::NewDetectService`` `NewDetectTls`, and `NewRouter`.
Co-authored-by: Eliza Weisman <[email protected]>
0 commit comments