Oscar Nierstrasz wrote:
> Oops. I made a mistake in the experiment.  There is actually less  
> difference than I thought.
>
> Here we load a web site, optionally using split and join to remove all  
> comments.  My regex version seems to be only marginally worse than  
> Keith's sequence splitting.
>
>
> 5289 "ON split on regex"
> 5327
>
> 5165 "KH split on sequence"
> 5160
>
> 2153 "no splitting"
> 2160
>
> So regex splitting seems to be feasible.
>   
splitOn: uses double dispatch so that it is the argument that determines
who it performs the splitting. All you have to do it implement
Regex-#splitUp: aString

Keith


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to