Skip to content

use Nokogiri::XML::Reader instead of the DOM parser#5

Merged
peterzhu2118 merged 1 commit intoShopify:masterfrom
flavorjones:flavorjones-use-less-memory
Oct 22, 2021
Merged

use Nokogiri::XML::Reader instead of the DOM parser#5
peterzhu2118 merged 1 commit intoShopify:masterfrom
flavorjones:flavorjones-use-less-memory

Conversation

@flavorjones
Copy link
Contributor

this is a slight performance hit, but uses WAY less memory.

this is a slight performance hit, but uses WAY less memory.
@flavorjones
Copy link
Contributor Author

As an example: running on a subset of the Nokogiri test suite, the current master version ends up using close to 4GB of memory; this PR makes it so that the amount of memory used is negligible, in exchange for a few seconds extra processing time.

@flavorjones
Copy link
Contributor Author

Uh, actually it seems like this is also a performance improvement (based on CI times).

@peterzhu2118 peterzhu2118 merged commit 0e22989 into Shopify:master Oct 22, 2021
@flavorjones flavorjones deleted the flavorjones-use-less-memory branch October 22, 2021 18:01
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

Successfully merging this pull request may close these issues.

2 participants