<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 12/01/2024 19:19, Quân Anh Mai
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAPvyiy+bWY-4q+jcOdLtVH5jR+ekM+F262roM9=FV+MxH4Sz4g@mail.gmail.com">
      
      <div dir="ltr">It is really late here so I will try that tomorrow.
        <div><br>
        </div>
        <div>Note that usage of the everything segment requires
          --enable-native-access, which in general gives an unsafe
          notice anyway.</div>
      </div>
    </blockquote>
    <p>Sure, I'm mostly curious as to how much of the gap is caused by
      bound check for on-heap vs. off-heap access. In my experience the
      latter almost always dominate the former.</p>
    <p>Maurizio<br>
    </p>
    <blockquote type="cite" cite="mid:CAPvyiy+bWY-4q+jcOdLtVH5jR+ekM+F262roM9=FV+MxH4Sz4g@mail.gmail.com">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Quan Anh</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Sat, 13 Jan 2024 at 01:29,
          Maurizio Cimadamore <<a href="mailto:maurizio.cimadamore@oracle.com" moz-do-not-send="true" class="moz-txt-link-freetext">maurizio.cimadamore@oracle.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
          On 12/01/2024 17:26, Quân Anh Mai wrote:<br>
          > FYI, in my submission to 1brc, using Unsafe decreases the
          execution <br>
          > time from 3.25s to 2.57s on the test machine.<br>
          <br>
          Just curious - what is the difference compared with the
          everything <br>
          segment trick?<br>
          <br>
          (While I know it can't do on-heap access, perhaps you can
          tweak the code <br>
          to be all off-heap?)<br>
          <br>
          Maurizio<br>
          <br>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>