bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 0/5] Speed up uNN_chr and uNN_strchr with Boyer-Moore algo


From: Pádraig Brady
Subject: Re: [PATCH v2 0/5] Speed up uNN_chr and uNN_strchr with Boyer-Moore algorithm
Date: Tue, 27 Jul 2010 17:28:46 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 27/07/10 19:14, Paolo Bonzini wrote:
> On 07/27/2010 06:06 PM, Pádraig Brady wrote:
>>
>> I would suggest a new function due to the
>> way I see this function called most often.
>> I.E. repeatedly with the same character.
> 
> Is this really a bottleneck?  i.e., what does u8_uctomb_aux look like in
> the profile when do a million u8_strchr calls on an empty string?

Well it would be a bit faster,
but mainly a bit easier to use.
I.E. one could do stuff like:

  while ((f=u8_str_u8_chr (s, "–", 3));

cheers,
Pádraig.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]