Regex (MatchText) speed
Troy Rollins
troy at rpsystems.net
Wed Jun 23 21:25:02 EDT 2004
I took a look through the archives, and didn't see anything definitive
about speed advantages in Rev of using matchText with regEx, compared
to more basic "chunking" techniques - including "contains". I find Rev
is a string handling monster with Transcript alone, but don't know just
what it is actually doing with Regex... for instance is it "a
Transcript regex engine" or some kind of compiled external? Or a
compiled internal?
I noted that Tuviah says that the regex engine caches the last 20
patterns, but...
Anyone have a real-world sense of the speed difference? I have a
parsing routine which I put together hastily, knowing that it would
need to be later optimized. I'm edging in on that optimization phase,
and I'm wondering what angle I might want to approach it. Speed is
definitely a concern.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net
More information about the use-livecode
mailing list