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

Bernd Eckenfels commented on VFS-771:
-------------------------------------

Just set the cache strategy to ON_DEMAND?

(Optimizations would be to avoid resolves, like some of the getChildren methods 
do)

> SFTP multiple get bad performances if copyFrom() called after findFiles()
> -------------------------------------------------------------------------
>
>                 Key: VFS-771
>                 URL: https://issues.apache.org/jira/browse/VFS-771
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.4.1, 2.6.0
>            Reporter: Rémi Villé
>            Priority: Major
>
> Similar to VFS-698: if you call sftpFile.findFiles(selector) before 
> localFile.copyFrom(sftpFile, selector) the second call reset file stats in 
> the cache (in .AbstractFileSystem#resolveFile() =>
> {code:java}
> if 
> (getFileSystemManager().getCacheStrategy().equals(CacheStrategy.ON_RESOLVE)) {
>  file.refresh();
> }
> {code}
> )
> Then the stats are retrieved one by one which result in poor performances.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to