Replaced IdentityMap with IdentityMap<TK, TV> - #3787
Open
Fube wants to merge 1 commit into
Open
Conversation
Fube
force-pushed
the
fube/opt_snapshotdict
branch
from
August 12, 2026 13:24
0767ea9 to
e751ae1
Compare
Fube
marked this pull request as ready for review
August 12, 2026 20:37
Member
|
@Fube need to regenerate API change files |
Contributor
Author
Member
|
Yes, update branch first |
Fube
force-pushed
the
fube/opt_snapshotdict
branch
from
August 13, 2026 12:16
e751ae1 to
f044fe3
Compare
Contributor
Author
Rebased and reran the command. |
hazzik
reviewed
Aug 16, 2026
Fube
force-pushed
the
fube/opt_snapshotdict
branch
from
August 18, 2026 13:12
f044fe3 to
99cf8dd
Compare
Fube
force-pushed
the
fube/opt_snapshotdict
branch
from
August 18, 2026 13:14
99cf8dd to
885eda4
Compare
Contributor
Author
|
@hazzik Do you need anything else from me? |
Member
Time, I need time. |
hazzik
reviewed
Sep 2, 2026
| if (collectionLoadContexts != null) | ||
| { | ||
| CollectionLoadContext collectionLoadContext = (CollectionLoadContext)collectionLoadContexts[resultSet]; | ||
| collectionLoadContexts.TryGetValue(resultSet, out var collectionLoadContext); |
Member
There was a problem hiding this comment.
I think here we need semantics of TryRemove
hazzik
reviewed
Sep 2, 2026
| ((IPersistentCollection)entry.Key).UnsetSession(Session); | ||
| foreach (var entry in collectionEntryArray) | ||
| { | ||
| ((IPersistentCollection)entry.Key).UnsetSession(Session); |
Member
There was a problem hiding this comment.
Can we make key of the dictionary a IPersistentCollection?
hazzik
reviewed
Sep 2, 2026
| public EntityEntry GetEntry(object entity) | ||
| { | ||
| return (EntityEntry)entityEntries[entity]; | ||
| if (entityEntries.TryGetValue(entity, out var entry)) |
Member
|
Can you please reformat: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Continues from #3762 (comment)
Addresses #3788
Benchmarks before
Benchmarks after