Managed Hosting



Project Home Blog Known Issues External Project Link Contact Project

XmlToStruct Issue: Performance on large XML records

Name: Performance on large XML records
ID: 5
Project: XmlToStruct
Type: Enhancement
Area: Administration
Severity: Normal
Status: Open
Related URL:
Creator: Clarence Liu
Created: 11/12/13 6:49 PM
Updated: 11/12/13 6:49 PM
Description: At the beginning there is an XmlSearch:
<cfset axml = XmlSearch(XmlParse(arguments.xmlNode),"/node()")>
      <cfset axml = axml[1] />

This is not required for every recursion, but only at the beginning, for large XMLs I found 10x speed improvements by moving this call into a wrapper method that then calls the original method, patching the original method where I assign "axml = arguments.xmlNode" directly and skip the XmlSearch call entirely.
History: Created by ClarenceL (Clarence Liu) : 11/12/13 6:49 PM

To add a comment to this bug, please login using the link above.