Jump to content

AutoIt 3.3.6.0 - regular expressions are REAL SLOW


Recommended Posts

Hi everybody!

I have some programs that use many regular expressions for text processing. From version 3.3.3.0 till 3.3.4.0 these programs had been working OK. But when I install version 3.3.6.0 I notice REAL SLOWING DOWN (up to 2-3 times) in using functions: StringRegExp, StringRegExpReplace. I can not understand - is it PCRE problem, or lack of realization, or I have to reorganize my regexes (they worked ok, but now very slow).

p.s. I could add text of my program & regexes but there are a lot of text on Russian - I would not understand.

Edited by Suppir
Link to comment
Share on other sites

Can you please give an simple example of a taget and pattern where current PCRE gets significantly slower than previous version. I'm nowhere challenging your findings, rather curious.

Don't miss the fact that Unicode REGEXPs are deemed to be much slower (in the ratio your state) than codepage version. I've no problem with a russian target & pattern as long at it's part of a codepage, even if I can't read or understand russian. In that case it should behave the same when "remapped" to ASCII letters, eventually loosing any meaning in the process, but we're only interested in the processing time, aren't we?

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Can you try this little program, please?

My link

1. Run the program.

2. Copy some big text (>50 kb) in buffer (CTRL+c)

3. Click CTRL+x. The program will do many replaces in text via regular expressions formulated in ini-file. Then it places modified text back in the buffer.

In 3.3.6.0 this program works slower 2 - 3 times than in 3.3.4.0 :(

Edited by Suppir
Link to comment
Share on other sites

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...