Skip to content

Commit

Permalink
Replace bool[] arrays with Span<bool> in XML deserialization
Browse files Browse the repository at this point in the history
The XML deserializer tracks for each property whether it's already been seen in the input being deserialized, and to do that the reader allocates a bool[] array.  We can instead stackalloc that for a reasonable number of properties.
  • Loading branch information
stephentoub committed Mar 23, 2022
1 parent 475554d commit 6e1ab40
Show file tree
Hide file tree
Showing 4 changed files with 699 additions and 656 deletions.
Loading

0 comments on commit 6e1ab40

Please sign in to comment.