[jsword-devel] regex searching
Trenton D. Adams
trent.jsword at trentonadams.ca
Thu Feb 25 21:32:18 MST 2010
----- "DM Smith" <dmsmith at crosswire.org> wrote:
> From: "DM Smith" <dmsmith at crosswire.org>
> To: "Trenton D. Adams" <trent.jsword at trentonadams.ca>, "J-Sword Developers Mailing List" <jsword-devel at crosswire.org>
> Sent: Thursday, February 25, 2010 8:54:31 PM GMT -06:00 US/Canada Central
> Subject: Re: [jsword-devel] regex searching
>
>
>
>See BookExporter for an example of iterating over the entire
> KJV efficiently:
http://www.crosswire.org/jsword/java2html/org/crosswire/jsword/bridge/BookExporter.java.html
Cool, I'm going to check it out.
> The other problem with your example is that each call to
> matches recompile the pattern. Hoist the pattern outside
> of the loop and it should be even faster.
Oh yeah, I was just hacking something together. ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20100225/91b82315/attachment.html>
More information about the jsword-devel
mailing list