<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58256>58256</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clangd 15 regressed performance of parsing long headers
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            sam-mccall
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sam-mccall
      </td>
    </tr>
</table>

<pre>
    The 15 address introduced a bug where we accidentally scan up to the end of source files every time we see a comment: https://reviews.llvm.org/D135314 has details

Some users/codebases are seeing a large performance regression due to this. See https://github.com/clangd/clangd/issues/1316

It has a simple fix, we should backport it.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9Us2OmzAQfhq4jBZhwEAOPmwbrbTn7QsM9gTcGoxskzRv34GsuumlEjLGNt-vB2_u6sdEICSgMYFiBLuk4M2myQDCsI1wmygQ3AhQa2toSejcHaLGBbYVkofEALQY8BeIfgua4GIdRaArhTskOx9_R2IE0H6eGSKrX2FKaY08yao3fgJdLd1i4dx1LnwYeeksalmLBiaMYCihdTErz1n5-hg_PANvkULks9obGjAyK4aDyy4j0zkMI8FK4eLDjAtLCzTuNq1fwGz0kG9jAR8s719Fo03TNhSseMd3uIzmeWJj3GinFrVon3W9p0MxQrTz6vYwfmfV9yOCyW_OwID61-pDApuKnJRoW1m3TSv73KjanOoT5skmR-rBtZfzqZo7efbCga8Y4m7VeR4mQsNx5Ftw6j9e9og_Xy9r8D9Jp2c_sq9km0_K9P3Q4aXqqBd13_RSVEiXVvL-qe8azB0O5KLK5LdMnnOrqrKqRCnKUoiu7gvTybI9kW5lJ_umKbOmpJlL_FtxHtShgS9Z5E1nY_rqP0cuaVyIDvyqiji_zFrz3eOPnQ-3NPmgvtbzw4E65P8BvlHvww">