commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BELUGA BEHR (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IO-454) IOUtils.skipToEnd
Date Wed, 06 Aug 2014 00:35:11 GMT

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

BELUGA BEHR commented on IO-454:
--------------------------------

Sebb,

As I've learned from the Compress library, it's much faster to skip if you can.  I.e., for
SSD, to skip from one place to another is instantaneous, just updating a pointer really. 
That benefit quickly falls away if the library has to make many block reads (read, copy, toss)
to get to the same place.

> IOUtils.skipToEnd
> -----------------
>
>                 Key: IO-454
>                 URL: https://issues.apache.org/jira/browse/IO-454
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Utilities
>            Reporter: BELUGA BEHR
>            Priority: Minor
>
> Hello,
> I'd like to see an IOUtils method that calls skip (or skip/read) on a stream until it
returns -1.
> Thanks.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message