You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2019/06/16 20:23:46 UTC
[GitHub] [commons-vfs] DavidSeptimus opened a new pull request #65: VFS-619
Fixes performance issue with SftpFileObject.getChildren()
DavidSeptimus opened a new pull request #65: VFS-619 Fixes performance issue with SftpFileObject.getChildren()
URL: https://github.com/apache/commons-vfs/pull/65
This PR removes an unnecessary invocation of `SftpObject.getType()` by `refresh()`.
This invocation causes performance degradation of `SftpFileObject.getChildren()` when `CacheStrategy.ON_RESOLVE` is in use as this forces a call to `refresh()`, which in turn calls `getType()`, making an additional `stat()` call to the SFTP server for each child.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services