Skip to content

Change SerializationContextBase.deserializingObjectTable into an array#435

Merged
AArnott merged 1 commit into
microsoft:mainfrom
ToddGrun:DeserializeIntoArrayInsteadOfDictionary
Dec 1, 2023
Merged

Change SerializationContextBase.deserializingObjectTable into an array#435
AArnott merged 1 commit into
microsoft:mainfrom
ToddGrun:DeserializeIntoArrayInsteadOfDictionary

Conversation

@ToddGrun

Copy link
Copy Markdown
Member

This takes advantage that the keys in the dictionary are 1 based values. This seems a bit of a fragile assumption, so I'm not going to complain if you'd rather nix this PR.

Without change
image

With change
image

This takes advantage that the keys in the dictionary are 1 based values.

Decreases an LOH entry from

+ Type Entry[System.UInt32,System.Object][]   4.2    1,810,392

to

+ Type System.Object[]   0.9    583,904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants