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

Files.lines() can use MemorySegment instead of a ByteBuffer

XMLWordPrintable

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

      Hello,
      currently Files.lines() uses two different implementations depending on if the file length is > 2G or not.

      Nowadays, having CSV data file that have a length > 2G is not that rare, so i wonder if the two implementation can not be collapsed to one using a MemorySegment ?

            Unassigned Unassigned
            forax Rémi Forax
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: