56014 xml writer.create perf regression (#56524)
authorSteve Molloy <smolloy@microsoft.com>
Wed, 4 Aug 2021 23:43:38 +0000 (16:43 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Aug 2021 23:43:38 +0000 (16:43 -0700)
commit880e67dbb8a2902d6ad5d1b0d6b2608f3bf9ce57
treea4f1d250aa1cc62d978e6542c02cf8fef15c9a65
parent28818b9716fc1e483bb7f6df7ae898751f5a5de3
56014 xml writer.create perf regression (#56524)

* Use non-indented XmlWriter to avoid perf hit.
* Add test for issue #46974 which was also fixed by original PR that caused this regression.
src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializer.cs
src/libraries/System.Private.Xml/tests/XmlSerializer/XmlSerializerTests.RuntimeOnly.cs
src/libraries/System.Runtime.Serialization.Xml/tests/SerializationTypes.RuntimeOnly.cs