Bug 641735
Summary: | Performance issue with perl-XML-SAX-0.14-8 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Remi Collet <fedora> | ||||||||
Component: | perl-XML-SAX | Assignee: | Petr Pisar <ppisar> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Petr Šplíchal <psplicha> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | low | ||||||||||
Version: | 5.5 | CC: | ohudlick, ppisar, psabata, psplicha, rvokal, xavier | ||||||||
Target Milestone: | rc | Keywords: | Patch | ||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | perl-XML-SAX-0.14-10 | Doc Type: | Bug Fix | ||||||||
Doc Text: |
Cause
Parsing long XML document through XML::Simple API if
XML::SAX parser implementation is available.
Consequence
The parser running time is unacceptably long.
Fix
XML::SAX parser copied XML string on each token match.
More efficient handling of consequent reading has been
back-ported.
Result
Long XML documents are parsed in reasonable time.
|
Story Points: | --- | ||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2011-11-14 03:06:59 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Remi Collet
2010-10-10 19:44:28 UTC
Of course, in the attached test case, the line $XML::Simple::PREFERRED_PARSER = 'XML::Parser' Should be removed... (this is a workround to this issue) Thanks for your report. Patch looks applicable on RHEL-5 version. Created attachment 520073 [details]
Test case
This is stricter version of original test case to prevent unintended here-document expansion.
Created attachment 520075 [details]
Fix back-ported from 0.96
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause Parsing long XML document through XML::Simple API if XML::SAX parser implementation is available. Consequence The parser running time is unacceptably long. Fix XML::SAX parser copied XML string on each token match. More efficient handling of consequent reading has been back-ported. Result Long XML documents are parsed in reasonable time. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1446.html |