This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Speed up LEX line cleaning a bit...


On Mar 14, 2010, at 4:20 PM, David Miller wrote:

> From: "Joseph S. Myers" <joseph@codesourcery.com>
> Date: Sun, 14 Mar 2010 23:16:21 +0000 (UTC)
> 
>> The idea would be to reduce the number of operations done on each word 
>> while processing a line, so reducing the total number of instructions in 
>> the inner loop.  (Additionally, backslashes are common in strings, so it 
>> would be good not to have to leave the vectorized loop for them.)
> 
> Understood, but it's really not possible here since as you note we
> either need to continue supporting spaces amidst backslash escaped
> newlines, or warn about it if support is removed.
> 
> I was actually surprised that this construct was supported,
> to be honest.  Who will really notice if we remove it? :-)

Unfortunately, a lot of real code depends on it, as horrifying as that is.

-Chris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]