Why this code is drastically slower than re?
GoogleCodeExporter opened this issue · 5 comments
GoogleCodeExporter commented
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
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
- Added labels: ****
- Removed labels: ****
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
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
- Added labels: ****
- Removed labels: ****
Attachments:
GoogleCodeExporter commented
Fixed in regex 2014.10.01.
Original comment by re...@mrabarnett.plus.com
on 1 Oct 2014 at 5:55
- Changed state: Fixed
- Added labels: ****
- Removed labels: ****
GoogleCodeExporter commented
[deleted comment]