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
Move default compression options into static variable in HttpContentCompressor (#16210)
Motivation:
When `HttpContentCompressor` is created with the default constructor, it
calls `defaultCompressionOptions()`, which allocates List and array on
every new pipeline with `HttpContentCompressor` in it.
Modification:
Moved default compression options initialization into a static variable.
Deprecated `private defaultCompressionOptions` method as it's used only
in the deprecated constructor.
Result:
No more list and array allocation when `HttpContentCompressor` is
created with default constructor.
0 commit comments