Method to call to minimize the memory usage of the stream/event reader;
both regarding Objects created, and the temporary memory usage during
parsing.
This generally incurs some performance penalties, due to using
smaller input buffers.
See
XMLInputFactory2#configureForLowMemUsage for
required settings for standard StAX/StAX properties.
In addition to the standard settings, following Woodstox-specific
settings are also done:
- Disable
P_CACHE_DTDS
- Enable
P_PARSE_LAZILY
- Resets
P_MIN_TEXT_SEGMENT
to the (somewhat low)
default value.
-
- Reduces
P_INPUT_BUFFER_LENGTH
a bit from the default
-