Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8316660

(fs) Files.lines implementation can use MemorySegment for file mapping

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      Currently, the package private class `FileChannelLinesSpliterator` is using a memory-mapped `ByteBuffer` when determining the split point.

      It would be possible to use a `MemorySegment` instead and simplify the logic a bit.

            pminborg Per-Ake Minborg
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: