3 ms·
Does the new Panama memory API help? There are new pointer-like classes for indexing into memory mapped files. Also, Kotlin has unsigned integers. So you could
by mike_hearn 3y ago
Does the new Panama memory API help? There are new pointer-like classes for indexing into memory mapped files.
Also, Kotlin has unsigned integers. So you could use that for the parts of your code that benefit from it.
- marginalia_nu 3y agoIt helps in the sense that it's no longer necessary to slice up the file into individual 2 GB byte buffers, though I'm not really using MemoryLayout/StructLayout much yet to do structured access. Haven't made sense of how to use that part of the API well yet.