I think it is simple .net regex which is slower.
I did the following:
1. Proved that asciidoc run under python (cygwin) evaluates the same
regular expression as under ipy - there are no bugs which make ipy evaluate
more REs
2. Captured the evaluated regular expressions in a form suitable for .net
and python
3. Write trivial program in c# to evaluate captured REs. (6 seconds)
4. Write trivial program in python to evaluate captured REs (0.4s for
python3.2 and 0.65s for python 2.7.5)
I also got rid off ipy/c# quirks (extra named groups), to get functional
equivalent and no conversion overhead - no change
Number of captured REs is 46253.
For this particular sample, cpython implementation if regular expression
appears to be 12 times faster than .net implementation

--pawel


On Wed, Apr 16, 2014 at 5:20 PM, Pawel Jasinski <pawel.jasin...@gmail.com>wrote:

> hi,
>
> I have made an exercise of running asciidoc under ironpython
> It turned out to be a performance disappointment.
> Converting trivial document takes 30 seconds where cpython is done
> under a second.
> Can it be that asciidoc, which makes heavy use of regular expression,
> exposes weak part of ironpython?
>
> Has anybody similar experience with applications using  heavily re?
>
> Am I doing something wrong?
>
>
> --pawel
>
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to