Details
-
Improvement
-
Resolution: Unresolved
-
Minor - P4
-
None
-
2.2
-
None
Description
The JsonBuffer class, when wrapping a TextReader, will consume memory equal to the total number of characters consumed from the TextReader. This could cause problems in several scenarios:
- A mongoimport-like scenario, where a single file contains many JSON documents and a single JsonReader is used to read them all
- A really large JSON document (though in most situations you'd need space proportional to the size of the document anyway)