<div dir="ltr"><div dir="ltr">On Thu, Oct 30, 2025 at 4:39 PM Florian Weimer <<a href="mailto:fweimer@redhat.com">fweimer@redhat.com</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm trying to image in a way to get rid of the double buffering in<br>
FileInputStream/FileOutputStream: have the kernel access the heap<br>
directly, instead of a copy. </blockquote><div><br></div><div>Wasn't that one of the goals of the NIO Channel API and direct ByteBuffers?</div><div><br></div><div>You've probably already considered that approach - if so I'm curious why it doesn't work.</div><div><br></div><div>Also there is the new Foreign Function & Memory AP (JEP 454) which might help.</div><div><br></div><div>-Archie</div></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>