Feature #308

Study() function for RegExp

Added by Jan Dolinár almost 12 years ago. Updated almost 12 years ago.

Status:ApprovedStart date:07/04/2012
Priority:NormalDue date:
Assignee:Jan Dolinár% Done:

100%

Category:-Spent time:-
Target version:-

Description

Hi,

I'd like to add new method to RegExp in plugin/pcre. The main reason is to allow better performance in some scenarios. From pcre manual:

If a compiled pattern is going to be used several times, it is worth

spending more time analyzing it in order to speed up the time taken for
matching. The function pcre_study() takes a pointer to a compiled pat-
tern as its first argument. If studying the pattern produces additional
information that will help speed up matching, pcre_study() returns a
pointer to a pcre_extra block, in which the study_data field points to
the results of the study.

Please apply or grant me access to that part of sources ;-)

pcre.diff Magnifier (2.07 KB) Jan Dolinár, 07/04/2012 07:39 PM

History

#1 Updated by Miroslav Fidler almost 12 years ago

  • Status changed from Patch ready to Ready for QA
  • Assignee changed from Miroslav Fidler to Jan Dolinár

#2 Updated by Jan Dolinár almost 12 years ago

  • Status changed from Ready for QA to Approved

Also available in: Atom PDF