bug-grep
[Top][All Lists]
Advanced

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

bug#18454: Improve performance when -P (PCRE) is used in UTF-8 locales


From: Paul Eggert
Subject: bug#18454: Improve performance when -P (PCRE) is used in UTF-8 locales
Date: Sat, 27 Sep 2014 15:36:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2

Jim Meyering wrote:

I've pushed this follow-up patch to suppress a new warning:

Thanks, I expect I didn't get that warning because I built on x86-64, which allows unaligned accesses so GCC doesn't complain. (Incidentally, I had already tried modifying the code to exploit the fact that unaligned accesses are OK on x86ish platforms, but that made the word-by-word loop go slower, so no dice.)

Too bad GCC isn't smart enough to notice that the pointer must be aligned. It strikes me that this problem must come up elsewhere, and that it's worth writing a macro to encapsulate the situation. I pushed the attached follow-up patch, which is an attempt to move in that direction.

Attachment: 0001-maint-generalize-the-Wcast-align-fix.patch
Description: Text document


reply via email to

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