Skip to content

Refactor XML item parsing in Xml source to use XMLReader#99

Merged
duncanmcclean merged 2 commits intostatamic:mainfrom
pixelastronauts:xml-update
Apr 7, 2025
Merged

Refactor XML item parsing in Xml source to use XMLReader#99
duncanmcclean merged 2 commits intostatamic:mainfrom
pixelastronauts:xml-update

Conversation

@pixelastronauts
Copy link
Contributor

Optimize XML Processing with XMLReader

Replaces simplexml_load_file with XMLReader for more memory-efficient XML processing. This change allows the importer to process XML files in a streaming fashion instead of loading the entire file into memory at once.

The functionality remains the same, but the implementation is now more scalable for large XML files.

Copy link
Member

@duncanmcclean duncanmcclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is much faster, thanks! 🚀

@duncanmcclean duncanmcclean merged commit f2ae19b into statamic:main Apr 7, 2025
17 checks passed
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