Ticket #86 (new enhancement)

Opened 2 years ago

Last modified 14 months ago

XML transported within text "unnormalizes" slowly

Reported by: lademann Owned by: ser
Priority: normal Milestone: 3.1.8
Component: DOM Version: 3.1.5
Severity: normal Keywords:
Cc: Ruby version: 1.8.2
Operating system: Linux

Description

In Text::unnormalize and in Baseparser::unnormalize the "matches"-array contains each matched entity AS OFTEN AS IT IS MATCHED!. Just add a "matches.uniq!" before looping over its elements. This GREATLY enhances performance then parsing documents that contain escaped XML, for example.

Regards Christian Lademann <cal@…>

PS. Thank you for REXML. It's a great tool!

Attachments

rexml-uniq.diff (1.5 kB) - added by lademann 2 years ago.
add some "matches.uniq!"

Change History

Changed 2 years ago by lademann

add some "matches.uniq!"

Changed 2 years ago by ser

  • milestone changed from 3.1.6 to 3.1.7

Changed 14 months ago by ser

  • milestone changed from 3.1.7 to 3.1.8
Note: See TracTickets for help on using tickets.