-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Implement ValueBuilder types for immutable collections #62193
Conversation
|
||
internal SegmentedDictionary<TKey, TValue> ReadOnlyDictionary => _mutableDictionary ?? _dictionary._dictionary; | ||
|
||
IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => throw new NotSupportedException(); |
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.
📝 It would be preferable for Keys
and Values
to work, but I couldn't think of a clean way for that to happen
Azure Pipelines successfully started running 4 pipeline(s). |
src/Dependencies/Collections/ImmutableSegmentedDictionary`2+ValueBuilder.cs
Outdated
Show resolved
Hide resolved
I assume this branch is based off an extremely old main. Probably not a lot of changes in this area, but it might make it easier for me to try this out if it were rebased off current #Closed |
src/Dependencies/Collections/ImmutableSegmentedDictionary`2+ValueBuilder.cs
Outdated
Show resolved
Hide resolved
src/Dependencies/Collections/ImmutableSegmentedHashSet`1+ValueBuilder.cs
Show resolved
Hide resolved
src/Dependencies/Collections/ImmutableSegmentedDictionary`2+ValueBuilder.cs
Show resolved
Hide resolved
src/Dependencies/Collections/ImmutableSegmentedHashSet`1+ValueBuilder.cs
Show resolved
Hide resolved
Not planning to rebase as there are no conflicts, and the current head accurately reflects when the work was completed. You can check out commit |
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.
@dotnet/roslyn-compiler for reviews |
2 similar comments
@dotnet/roslyn-compiler for reviews |
@dotnet/roslyn-compiler for reviews |
Rebased without changes (https://github.com/dotnet/roslyn/compare/7fea68830f7ef10a5e7e890431e1869d1c9a074d..b3e8dffce55f0f39b0644dec098c7d2c02591a54) to apply fixup commits, then merged main to fix conflicts. |
Avoids
Builder
allocations for common mutations of immutable data structures.