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

(fs) Files.copy needs to be "tuned"

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 7
    • core-libs
    • None
    • b04
    • generic
    • generic

    Description

      On Linux/macOS, the file copy implementation uses a fixed 8k buffer. This should be re-examined as this isn't a good buffer size for some cases (like NFS). Ideally the buffer size should be a multiple of both the source and target block sizes.

      On Windows, we should use the COPY_FILE_NO_BUFFERING flag when copying "large files". This flag is documented to improve copy performance for large files.

      Attachments

        Issue Links

          Activity

            People

              bpb Brian Burkhalter
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: