martine/ninja — pull request #738 by bratell-at-opera (2014-04-15 15:54:39+00:00)
Title: Solve the line-wrapping performance problem by shortening lines.

Avoid joining a list just to split it again.

The main performance problem in the line wrapping came from lines that were
thousands of characters long, and those came from a single location, build.

This patch jumps past _line and the slow code, by emitting the file
list with one file per line. It even becomes easier to read that way.
Everyone is a winner.

This saves about 1 CPU second when running gyp for chromium.

(Not wrapping at all is slightly faster but only by 0.1 second or so).