Modify

Opened 16 years ago

Closed 13 years ago

#1554 closed Feature Request (Rejected)

RegExp precompile handling

Reported by: MrCreatoR <mscreator@…> Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

It is not a secret that the use of regular expressions is divided into two phases:

  • Expression precompilation;
  • Execution of compiled expression with target text

Each of these phases takes precious time (processor ticks)... when dealing with large texts, compilation time is unimportant, but for short lines this time greatly exceeds the execution time, and any kind of regular expression optimization will not help here... the situation is exacerbated for the case when one expression is used in the cycle loop (for example, an array of lines) - each call leads to unnecessary recompilation of the same expression.
Hence the need for a function to pre-compile the expression in the handle, which can then be applied to StringRegExp/StringRegExpReplace on a par with the very expression, most likely it will require a steam function to close the handle / free memory.

Following the PCRE man page, the engine supports this possibility.

Thanks.

Attachments (0)

Change History (3)

comment:1 by J-Paul Mesnage, 16 years ago

Owner: set to Jon
Status: newassigned

I leave to Jon the decision to add or not to add such feature as he is the owner of RegExp... stuff

comment:2 by MrCreatoR <mscreator@…>, 15 years ago

Any progress on this issue?
After an year... http://files.myopera.com/Creat0R/Opera_AC/Icons/whistle.gif

comment:3 by Jon, 13 years ago

Resolution: Rejected
Status: assignedclosed

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.