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

    <tr>
        <th>Summary</th>
        <td>
            [llvm-debuginfo-analyzer] Optimize 'LVNamespaceDeduction::find' funtion.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            debuginfo,
            tools:llvm-debuginfo-analyzer
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          CarlosAlbertoEnciso
      </td>
    </tr>
</table>

<pre>
    Extracted from [llvm/tools/llvm-debuginfo-analyzer/README.txt](https://github.com/llvm/llvm-project/blob/main/llvm/tools/llvm-debuginfo-analyzer/README.txt)
https://reviews.llvm.org/D125784#inline-1296195

Optimize the 'find' method to use the proposed code:
```
 LVStringRefs::iterator Iter = std::find_if(Components.begin(), Components.end(),
    [](StringRef Name) {
        return IdentifiedNamespaces.find(Name) == IdentifiedNamespaces.end();
    });
 LVStringRefs::size_type FirstNonNamespace = std::distance(Components.begin(), Iter);
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU01r3DAQ_TXyRcTY4--DD5t4DYE0hRRyDbI13lWxJSON0yS_vmi99Sa0KWRZDNKM3pt580Y4pw4asWbZNcuaQCx0NLa-EXY0bjd2aMnsda-cCTojX-v9C1nRE0o-WDNxll2P4_PEoCVjRseg9ccrid1yUHowV0KL8fUNLYP2Yb9rvu1DeiGWNQzKI9HsWLJj0DJoD4qOSxf2ZjqD_MGarfmJPTFou9F0DNpJKH3J-RIvVCxqWLT7SG3xWeEvF3qI0NgDg7aJISvKlEGi9Kg0XsVQ5XGVrc_X7_eZ1KTekNMROYNiUFoyKPiEdDSSk-GLW4OzNbNxKHlvJHraFSWPzv_Tkd89_iCr9OEBh1NtyU4RWkHG8ltCy1nScEdyDXmyJzUwKG_MNBuNmlzY4cFLU_o-4Ya_i6Av7Xx_puOcrzNnUG7E_F5MyKDirLi-5PmfRVqs5rcSNalBofSZbhY9unDtvNzeJo2v9Z-pl0KSdwSsaD5c_S2FU2_4RK8z8lZZR_dGb6AfhZHKkdA9_lcZr-d7wm0UgawTWSWVCLCO86pI07yANDjWaR4XVVfmXZZGUCTVUOQplghFlotYRlGgaoggiaM4j8qsTNMwEX2RxF2eDYWsqiFhaYSTUONms0A5t2CdV3GRBqPocHSnLQTYbMwA_MAAVpcnu09dDn55bX2Kd8vBsTQalaOLqQNSNJ7W_DOMrOGbpRkUd4-bwg3KpSdl9MV73ujDov1lGCx2rL-8zafu_eaeBPgdAAD__-sJaxQ">