Re: FFM - Optimizing string reads in MemorySegment

2025-07-21 Thread Liam Miller-Cushon
Thank you! I will follow along in the bug. On Mon, Jul 21, 2025 at 8:02 AM Per-Ake Minborg wrote: > Hi Liam! > > Thank you for your comments on MemorySegment::getString ! > > The intention was that the creation of the intermediate array should be > elided, but as you point out, that is (at least

Re: FFM - Optimizing string reads in MemorySegment

2025-07-21 Thread Per-Ake Minborg
Hi Liam! Thank you for your comments on MemorySegment::getString ! The intention was that the creation of the intermediate array should be elided, but as you point out, that is (at least sometimes) not the case. I've made an experimental patch where I've used JavaLangAccess::uncheckedNewStringN