I've used PRegEx for a very simple text search (just dropping contents of a text member into a PRegEx "StringList") and it saved me on a previous project. Truth is, I'd already hammered together quite a bit of code to do this XOR thing w/o it and wanted to make it work. Thomas/Colin's approach looks elegant to my inexperienced eyes...going to see what I can do w/that.

Pulling the data in in chunks and dropping in the small optimization recommended by Tab and Daniel (and naively missed by yours truly) has really shaved off a bunch of time. I have a feeling that making it look more like Thomas' and Charlies' code will get it down to just a few seconds...which is what I need to do.

Here goes...I'll let you know how it works out.

Funny, I never thought of always operating on the front of the string as a solution. Now, seems an (all but obvious) way to improve the speed of getting through a big string.

Gilles

On Saturday, May 1, 2004, at 11:32 US/Eastern, Troy Rollins wrote:


On May 1, 2004, at 11:07 AM, 2702NET wrote:


Ultimately, I guess I'll probably look at cooking something up in RealBasic and launching that from my projector. It'd be nice to make it work natively in Lingo though.

I'd be surprised if PregEx wasn't fast enough. It's certainly as fast or faster than anything done in RB.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to