[jira] [Commented] (IO-387) IOUtils method to copy File Streams using NIO Channels

2024-02-10 Thread Gary D. Gregory (Jira)


[ 
https://issues.apache.org/jira/browse/IO-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17816320#comment-17816320
 ] 

Gary D. Gregory commented on IO-387:


JMH to the rescue ;)

See also:
 * org.apache.commons.io.file.PathUtils.fileContentEquals(Path, Path, 
LinkOption[], OpenOption[])
 * org.apache.commons.io.RandomAccessFiles.contentEquals(RandomAccessFile, 
RandomAccessFile)

> IOUtils method to copy File Streams using NIO Channels
> --
>
> Key: IO-387
> URL: https://issues.apache.org/jira/browse/IO-387
> Project: Commons IO
>  Issue Type: New Feature
>Reporter: Sebb
>Priority: Major
>
> Might be useful to have a method to copy FileStreams using NIO channels.
> This should generally be faster than using byte buffers (and may use less 
> memory).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (IO-387) IOUtils method to copy File Streams using NIO Channels

2024-02-10 Thread Elliotte Rusty Harold (Jira)


[ 
https://issues.apache.org/jira/browse/IO-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17816296#comment-17816296
 ] 

Elliotte Rusty Harold commented on IO-387:
--

I like the auto-switch idea, especially if performance improvements can be 
measured. Do we have benchmarks for this?

A new method doesn't seem needed, especially since any performance improvements 
might not hold in future JDKs.

> IOUtils method to copy File Streams using NIO Channels
> --
>
> Key: IO-387
> URL: https://issues.apache.org/jira/browse/IO-387
> Project: Commons IO
>  Issue Type: New Feature
>Reporter: Sebb
>Priority: Major
>
> Might be useful to have a method to copy FileStreams using NIO channels.
> This should generally be faster than using byte buffers (and may use less 
> memory).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (IO-387) IOUtils method to copy File Streams using NIO Channels

2013-06-02 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/IO-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13672741#comment-13672741
 ] 

Sebb commented on IO-387:
-

Alternatively consider whether to automatically switch to using NIO channels if 
the InputStream and OutputStream are both instances of File Streams.

 IOUtils method to copy File Streams using NIO Channels
 --

 Key: IO-387
 URL: https://issues.apache.org/jira/browse/IO-387
 Project: Commons IO
  Issue Type: New Feature
Reporter: Sebb

 Might be useful to have a method to copy FileStreams using NIO channels.
 This should generally be faster than using byte buffers (and may use less 
 memory).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira