bug-grep
[Top][All Lists]
Advanced

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

bug#16842: [PATCH] Use mbrtowc_cache in DFA engine


From: Paul Eggert
Subject: bug#16842: [PATCH] Use mbrtowc_cache in DFA engine
Date: Fri, 28 Mar 2014 00:27:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Thanks very much. I read through that patch and think we can come up with a simpler cache that need not store lengths, but reserves WEOF to represent an incomplete multibyte character. This approach simplifies the code and avoids some glitches when mbrtowc returns special values not in the range 1..N. How about the attached patch instead?

Attachment: 0001-dfa-cache-results-of-mbrtowc-for-speed.patch
Description: Text document


reply via email to

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