[Ironpython-users] running asciidoc

Pawel Jasinski pawel.jasinski at gmail.com
Fri Apr 18 00:32:44 CEST 2014


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.jasinski at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140418/22f77e05/attachment.html>


More information about the Ironpython-users mailing list