emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#16544: closed (Optimazation for is_mb_middle)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#16544: closed (Optimazation for is_mb_middle)
Date: Sun, 02 Feb 2014 16:36:02 +0000

Your message dated Sun, 2 Feb 2014 08:35:15 -0800
with message-id <address@hidden>
and subject line Re: bug#16544: Optimazation for is_mb_middle
has caused the debbugs.gnu.org bug report #16544,
regarding Optimazation for is_mb_middle
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
16544: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16544
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Optimazation for is_mb_middle Date: Sat, 25 Jan 2014 11:39:11 +0900
Package: grep
Tags: patch

When matched characters to a regular expression is found by kwsexec or
dfaexec, we need check whether it is in the middle of a multi-byte character.

`is_mb_middle' of searchutils.c is used for it. However, it's expensive,
even if most of them contain constitute with single-byte characters.
For example, a source code written in a language with multibyte characters,
has a lot of single-byte characters.

Now, I post the patch which optimizes `is_mb_middle'. It checks whether
each single-byte is completion as an character before execution, and
caches them. In addition, for UTF-8 further optimization is performed.

Only when it's impossible to determine the length of a multibyte character
with caches, the length is determined with `mbrlen' in execution.

Attachment: is_mb_middle.txt
Description: Binary data


--- End Message ---
--- Begin Message --- Subject: Re: bug#16544: Optimazation for is_mb_middle Date: Sun, 2 Feb 2014 08:35:15 -0800
Merged and pushed.


--- End Message ---

reply via email to

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