[cfe-commits] r139116 - in /cfe/trunk: lib/Lex/Lexer.cpp test/Lexer/bcpl-escaped-newline.c

Chris Lattner clattner at apple.com
Tue Sep 6 15:40:26 PDT 2011


On Sep 5, 2011, at 12:19 AM, Benjamin Kramer wrote:

> Author: d0k
> Date: Mon Sep  5 02:19:39 2011
> New Revision: 139116
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=139116&view=rev
> Log:
> Speed up BCPL comment lexing by looking aggressively for newlines and then scannig backwards to see if the newline is escaped.
> 
> 3% speedup in preprocessing all of clang with -Eonly. Also includes a small testcase for coverage.

Awesome!!




More information about the cfe-commits mailing list