Regular Expressions in Smalltalk?
Lic. Edgar J. De Cleene
edgardec2001 at yahoo.com.ar
Mon Jun 21 11:12:37 UTC 2004
On 20/06/04 14:02, "Avi Bryant" <avi at beta4.com> wrote:
>
> On Jun 20, 2004, at 8:23 AM, Ned Konz wrote:
>
>> There are also some all-Smalltalk regex packages available; I haven't
>> tried
>> them or compared them against the plugin-based one (which is quite
>> fast and
>> complete, and comes with a number of tests).
>
> I did some benchmarking a while ago of the port of Vassili's regex
> package against the plugin, and wrote this to the list:
>
> "
> It did amazingly well - although it takes about 20x as long to compile
> a pattern, when actually matching the plugin only gave about a 3x speed
> boost. Given that either way we're talking tens of thousands of
> matches per second for most input, I'm not sure a plugin is really
> necessary.
> "
>
> One advantage of using an all-Smalltalk package is that your code is
> more portable; it would be a real hassle to get a PCRE plugin going on
> VW or Dolphin, but Vassili's matcher already runs on them. This may
> not be a concern for everyone, but it is for me.
>
> Avi
>
>
I doing some work with Vassili's regex (not so complete) but in case a vote
is needed, thinks what not having pluggins is better.
Speed vs portablility is the case ?
Edgar
More information about the Squeak-dev
mailing list
|