Memory Mapped file segment (file is empty)

Ty Young youngty1997 at gmail.com
Thu Jun 25 16:40:50 UTC 2020


On 6/25/20 11:03 AM, Ty Young wrote:
>
> If the data is being repeated like so in a reliable format like:
>
>
> 1. 80-byte string
>
> 2. struct with int(4-bytes), 4-byte padding, and an 8-byte long
>
> 3. int(4-bytes)
>
>
> (total 100 bytes)
>
>
> You could, I think, use MemoryHandles.withOffset then to create a 
> VarHandle that would allow you to iterate through these entries. You 
> could further use VarHandles to reduce the amount slicing for each entry.
>
>
> This may require use of unsafe though, I think? Not sure.
>

Nevermind, slicing is required after trying this. Still, you can 
optimize individual parts of it.


Apologies.



More information about the panama-dev mailing list