[
https://issues.apache.org/jira/browse/LUCENE-3690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186005#comment-13186005
]
Steven Rowe commented on LUCENE-3690:
-------------------------------------
bq. some test docs using malformed markup that require backtracking
I set up a quick test for this in both of the test classes using output from
the synthetic broken HTML generator
{{o.a.l.util._TestUtil.randomHtmlishString()}} and ran 100K iterations of it -
here's the HTMLStripCharFilterTest version:
{code:java}
public void testRandomBrokenHTML() throws Exception {
int maxNumElements = 10000;
String text = _TestUtil.randomHtmlishString(random, maxNumElements);
Reader reader
= new HTMLStripCharFilter(CharReader.get(new StringReader(text)));
while (reader.read() != -1);
}
{code}
Best/worst of 5 (as reported by Ant for the individual test, rather than for
the entire Ant invocation):
* {{HTMLStripCharFilter}}: best: 73.4 sec, worst: 76.5 sec
* {{JFlexHTMLStripCharFilter}}: best: 73.5 sec, worst: 76.0 sec
I'm going to increase the evilness of {{_TestUtil.randomHtmlishString()}} and
re-run to see if the numbers shift.
> JFlex-based HTMLStripCharFilter replacement
> -------------------------------------------
>
> Key: LUCENE-3690
> URL: https://issues.apache.org/jira/browse/LUCENE-3690
> Project: Lucene - Java
> Issue Type: New Feature
> Components: modules/analysis
> Affects Versions: 3.5, 4.0
> Reporter: Steven Rowe
> Assignee: Steven Rowe
> Fix For: 3.6, 4.0
>
> Attachments: LUCENE-3690.patch, LUCENE-3690.patch, LUCENE-3690.patch
>
>
> A JFlex-based HTMLStripCharFilter replacement would be more performant and
> easier to understand and maintain.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]