Class: SAXXMLReader::InnerReaderWithNodeClearing

Inherits:
Struct
  • Object
show all
Defined in:
backend/app/converters/lib/sax_xml_reader.rb

Overview

Nokogiri under JRuby has historically had problems where all nodes are loaded into memory. We do some footwork here to clear the nodes as we finish with them, allowing the GC to clean up as we go.

As of 2021, this still looks to be relevant:

https://github.com/sparklemotion/nokogiri/issues/1066