Forever-Young / mrab-regex-hg

Automatically exported from code.google.com/p/mrab-regex-hg
0 stars 0 forks source link

Why this code is drastically slower than re? #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, please run the attached .py file

if import re:
    take 0.49830628 seconds on my pc
if import regex:
    take 8.43174517 seconds on my pc

Is it the problem of "pos=" parameter?

------------------------------------
Which version of Python? 32-bit or 64-bit?
Python 3.4.2 rc1, 32-bit
regex 2.4.49

Which operating system? Big-endian or little-endian?
Windows 7
Little Endian

Original issue reported on code.google.com by animaliz...@gmail.com on 1 Oct 2014 at 8:56

Attachments:

GoogleCodeExporter commented 9 years ago
Regex is great, thank you, I would like to see it as a standard module in 
future.

Original comment by animaliz...@gmail.com on 1 Oct 2014 at 9:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It seems not the problem of "pos=" parameter which I mentioned in OP, so I 
deleted .py files above this post.

Please test this one.

Original comment by animaliz...@gmail.com on 1 Oct 2014 at 1:40

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in regex 2014.10.01.

Original comment by re...@mrabarnett.plus.com on 1 Oct 2014 at 5:55