<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    Hi Christoph,<br>
    <br>
    Could you please share more info like what type of sources are you
    compiling: machine generated or not, very long sources, etc. Also
    what's the performance improvement you get with your patch, etc.<br>
    <br>
    Thanks,<br>
    Vicente<br>
    <br>
    <div class="moz-cite-prefix">On 2/21/23 16:03,
      <a class="moz-txt-link-abbreviated" href="mailto:christoph.dreis@freenet.de">christoph.dreis@freenet.de</a> wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:AS8P193MB12247CE232823FDE020C44B0AFA59@AS8P193MB1224.EURP193.PROD.OUTLOOK.COM">
      
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}code
        {mso-style-priority:99;
        font-family:"Courier New";}span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}.MsoPapDefault
        {mso-style-type:export-only;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;background:white"><span style="color:#24292F" lang="EN-US">Hi,<o:p></o:p></span></p>
        <p style="margin:0cm;background:white;box-sizing:
          border-box;font-variant-ligatures: normal;font-variant-caps:
          normal;orphans: 2;text-align:start;widows:
          2;-webkit-text-stroke-width: 0px;text-decoration-thickness:
          initial;text-decoration-style: initial;text-decoration-color:
          initial;word-spacing:0px">
          <span style="color:#24292F" lang="EN-US">I'm currently
            profiling some compilation phases of internal projects and
            noticed in allocation profiles that </span><code><span style="font-family:"Calibri",sans-serif;color:#24292F" lang="EN-US">Symtab.lookupPackage</span></code><span style="color:#24292F" lang="EN-US"> takes up ~2% overall.
            The majority of this is spent in </span><code><span style="font-family:"Calibri",sans-serif;color:#24292F" lang="EN-US">.stream().anyMatch()</span></code><span style="color:#24292F" lang="EN-US"> usages to find out if
            the given module symbol depends on the unnamed module.<o:p></o:p></span></p>
        <p style="margin:0cm;background:white"><span style="color:#24292F" lang="EN-US"><o:p> </o:p></span></p>
        <p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;background:white"><span style="color:#24292F" lang="EN-US">The PR under <a href="https://github.com/openjdk/jdk/pull/12700" moz-do-not-send="true" class="moz-txt-link-freetext">
              https://github.com/openjdk/jdk/pull/12700</a> desugars the
            code into a simple loop.<o:p></o:p></span></p>
        <p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;background:white;box-sizing:
          border-box;font-variant-ligatures: normal;font-variant-caps:
          normal;orphans: 2;text-align:start;widows:
          2;-webkit-text-stroke-width: 0px;text-decoration-thickness:
          initial;text-decoration-style: initial;text-decoration-color:
          initial;word-spacing:0px">
          <span style="color:#24292F" lang="EN-US">If you think this is
            worthwhile I'd appreciate if this is sponsored. I'd also
            need a ticket number for that because I can't create
            tickets.
          </span><span style="color:#24292F">CLA should be signed
            though.<o:p></o:p></span></p>
        <p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;background:white"><span style="color:#24292F;background:white" lang="EN-US">Let me
            know what you think.</span><span style="color:#24292F" lang="EN-US"><br>
          </span><span style="color:#24292F;background:white">Cheers,</span><span style="color:#24292F"><br>
            <span style="background:white">Christoph</span><o:p></o:p></span></p>
        <p style="margin:0cm;background:white"><span style="font-size:10.5pt;font-family:"Segoe
            UI",sans-serif;color:#24292F" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>