This patch kit fixes scaling issues for the input cache,
especially for C, motivated by PR118168.

In overall in number of lines it is practically neutral:

 gcc/input.cc   | 261 
++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------
 gcc/input.h    |   4 +-
 gcc/params.opt |   8 ++++
 gcc/toplev.cc  |   2 +
 4 files changed, 137 insertions(+), 138 deletions(-)

It is a bit large for stage 3 however.

I guess a minimal fix for PR118168 would be the first and second
patch only, which can make the test case work in reasonable time
with a single --param. The full fix is the full patchkit.

More could be done, e.g. using mmap and vectorizing the line
search function, but the worst problems are fixed.

Reply via email to