RFR: 8274112: (fc) Tune FileChannel.transferTo() [v7]

Brian Burkhalter bpb at openjdk.java.net
Fri Apr 29 23:12:43 UTC 2022


> Please consider this patch which would improve the performance of
> `FileChannel.transferTo()` on macOS and Windows.

Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains ten additional commits since the last revision:

 - 8274112: Cleanup based on reviewer comments
 - Merge
 - 8274112: Revert all changes except mapped transfer threshold
 - 8274112: Remove native read-write copy; add threshold for mapped copy; use Linux copy_file_range() for direct copy if available
 - Merge
 - 8274112: Make transferTo0() static; remove check for null FileDescriptor
 - 8274112: Modify transfer_read_write() not to throw if read or write fails
 - 8274112: Refactor to use transferToFileChannel()
 - 8274112: (fc) Tune FileChannel.transferTo()

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5623/files
  - new: https://git.openjdk.java.net/jdk/pull/5623/files/778928ba..c72b4b58

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5623&range=06
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5623&range=05-06

  Stats: 176486 lines in 2628 files changed: 126157 ins; 10947 del; 39382 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5623.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5623/head:pull/5623

PR: https://git.openjdk.java.net/jdk/pull/5623


More information about the nio-dev mailing list