Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOM error by feeding a huge xml to Nokogiri::XML::Reader in JRuby #523

Closed
koichiro opened this issue Aug 25, 2011 · 0 comments
Closed

OOM error by feeding a huge xml to Nokogiri::XML::Reader in JRuby #523

koichiro opened this issue Aug 25, 2011 · 0 comments

Comments

@koichiro
Copy link

The pure-java Nokogiri::XML::Reader can't read a huge xml
because it always reads whole file on memory.

See(Ja): https://twitter.com/#!/eban/status/98629501499613184

To solve this problem,
I've changed Nokogiri::XML::Reader to use StAX.
It uses less memory and seems to work on better performance.

But it doesn't support Nokogiri::XML::Reader#inner_xml and Nokogiri::XML::Reader#outer_xml.
I didn't come up with how to support these with StAX API.
Does somebody have any idea for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant