ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34464] - telnet task performance problem
Date Mon, 22 May 2006 19:27:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34464>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34464





------- Additional Comments From blinks@acm.org  2006-05-22 19:27 -------
Created an attachment (id=18328)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18328&action=view)
Patched to keep track of the possible match window.

While something like the Raita or Boyer-Moore algorithm might be a better
choice in the long run, this patch just keeps track of the newest substring
that might be a match.

Advantages: Doesn't do string matching if the buffer is smaller than the
pattern.  Only performs indexOf on a minimal substring.

Disadvantages: Extra test and increment in the while loop's test.  Extra
variable initialization.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message