[pcre-dev] [Bug 1288] Performance issue using C++ interface …

Top Page
Delete this message
Author: Tóth Tamás
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1288] Performance issue using C++ interface with UTF-8 enabled
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1288

Tóth Tamás <toth.tamas@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





--- Comment #2 from Tóth Tamás <toth.tamas@???> 2012-08-30 08:15:43 ---
I'm a C++ programmer and the patch I've suggested is the required minimal code
modification to work around the described performance issue. As I looked into
the code and in my opinion there are two problems with current C++ code.

1. There are some PCRE_* flag that not supported by RE_Options through member
functions. This is the smaller problem since these flags can be set directly
(by RE_Options constructor and set_all_options member function).

2. The bigger problem that there is no way to set option flags for wrapped
pcre_compile and pcre_exec individually. (Some flags are set automatically like
anchoring due to calling PartialMatch or FullMatch, but most of them are
unavailable through C++ interface).

If you think these should be changed I can suggest some code modification for
this purpose.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email