Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
perf: improve allocations in
OwinEnvironment
#58917base: main
Are you sure you want to change the base?
perf: improve allocations in
OwinEnvironment
#58917Changes from 9 commits
c05d859
be3c7d4
8cd24a2
efbca57
fb27a6e
a5f8264
478c6db
a61aff4
8ae8104
e71d10a
ebc7e4d
4ba14d4
7c236dd
32da5f8
ff43fb2
d5e05e8
09dd500
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux Musl ARM)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux x64)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux ARM64)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: macOS arm64)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux Musl ARM64)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux ARM)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux Musl x64)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: macOS x64)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-quarantined-pr (Tests: Ubuntu x64)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Test: Ubuntu x64)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-quarantined-pr (Tests: macOS)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Test: macOS)
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-quarantined-pr
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-quarantined-pr
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
Check failure on line 111 in src/Http/Owin/src/DictionaryStringArrayWrapper.cs
Azure Pipelines / aspnetcore-ci
src/Http/Owin/src/DictionaryStringArrayWrapper.cs#L111
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this not share as
public struct Enumerator : IEnumerator<KeyValuePair<string, T>>, IEnumerator
with the one above? ConvertingEnumerator or somethingThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed to
ConvertingEnumerator
. I dont think I can make a generic impl for inner enumerator ofDictionaryStringArrayWrapper
andDictionaryStringValuesWrapper
. That was your idea, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'd have to pass in a Convert delegate to reuse the same one. Maybe not worth the bother.
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux Musl ARM)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux x64)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux ARM64)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: macOS arm64)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux Musl ARM64)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux ARM)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: Linux Musl x64)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Build: macOS x64)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-quarantined-pr (Tests: Ubuntu x64)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Test: Ubuntu x64)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-quarantined-pr (Tests: macOS)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci (Build Test: macOS)
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-quarantined-pr
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156
Check failure on line 156 in src/Http/Owin/src/DictionaryStringValuesWrapper.cs
Azure Pipelines / aspnetcore-ci
src/Http/Owin/src/DictionaryStringValuesWrapper.cs#L156