-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Labels
Milestone
Description
Currently, HttpRequestOptions
is backed by a Dictionary<string, object?>
that contains only a few items in the vast majority of the use cases which is sub-optimal. Instead we could, back it by an array, or even embed a few key-value pairs, and allocate a dictionary/array only if the embedded limit is exceeded.
This would reduce the memory footprint of Metrics enrichment and also improve many other customer scenarios (eg. in dotnet/extensions) which rely on HttpRequestOptions
.
MihaZupan