We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 773e822 commit d964b63Copy full SHA for d964b63
src/libraries/System.Private.Xml/src/System/Xml/Core/XmlReader.cs
@@ -81,7 +81,9 @@ public abstract partial class XmlReader : IDisposable
81
internal const int BiggerBufferSize = 8192;
82
internal const int MaxStreamLengthForDefaultBufferSize = 64 * 1024; // 64kB
83
84
- internal const int AsyncBufferSize = 64 * 1024; //64KB
+ // Chosen to be small enough that the character buffer in XmlTextReader when using Async = true
85
+ // is not allocated on the Large Object Heap (LOH)
86
+ internal const int AsyncBufferSize = 32 * 1024;
87
88
// Settings
89
public virtual XmlReaderSettings? Settings => null;
0 commit comments