[pcre-dev] [Bug 897] \w and others based on Unicode properti…

Page principale
Supprimer ce message
Auteur: Philip Hazel
Date:  
À: pcre-dev
Anciens-sujets: [pcre-dev] [Bug 897] New: \w and others based on Unicode properties
Sujet: [pcre-dev] [Bug 897] \w and others based on Unicode properties
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #8 from Philip Hazel <ph10@???> 2009-12-16 17:32:01 ---
On Wed, 16 Dec 2009, Pavel Kostromitinov wrote:

> Also I have a question on the coding style.
>
> I understand that it is for evfficiency reasons that many things are done as
> #define's rather that function calls. However, since property lookup is bound
> to be rather slow anyway, maybe I'll make separate functions for looking up
> needed properties? Surely I'll preserve "no-call" style in case this lookup is
> not needed.


Not sure exactly what you are asking here. Why would you want a function
instead of the macro GET_UCD(c) (for example)? It does not expand into
very much code - just a single expression - and so I think you would
lose a lot of performance if you moved to using a function. Entering and
leaving a function takes time.

Philip


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