Modify

Opened 15 years ago

Closed 11 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 Changed 14 years ago by Jpm

  • Owner set to Jon
  • Status changed from new to assigned

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

comment:2 Changed 13 years ago by MrCreatoR <mscreator@…>

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

comment:3 Changed 11 years ago by Jon

  • Resolution set to Rejected
  • Status changed from assigned to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.