You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Mario Ivankovits (JIRA)" <ji...@apache.org> on 2006/12/08 16:00:32 UTC
[jira] Commented: (VFS-96) Performance:
FtpFileObject.getChildFile() without call to doGetChildren()
[ http://issues.apache.org/jira/browse/VFS-96?page=comments#action_12456861 ]
Mario Ivankovits commented on VFS-96:
-------------------------------------
If it is a performance bottleneck depends on the use case.
Loading of the directory should happen only once, so if you are going to scan the directory you'll have a performance bottleneck if you have to issue a dir for every single file.
Having it configurable might be an option.
> Performance: FtpFileObject.getChildFile() without call to doGetChildren()
> --------------------------------------------------------------------------
>
> Key: VFS-96
> URL: http://issues.apache.org/jira/browse/VFS-96
> Project: Commons VFS
> Issue Type: Improvement
> Affects Versions: later
> Reporter: Emmanuel Fleury
>
> The FtpFileObject.getChildFile() implementation gets the full directory lost of the parent to retrieve information on only one of its childs.
> This can be a performance bottleneck if the parent directory contains a lot of files (for instance, listing a directory containing 1000 files costs more than 100Kb).
> A better implementation should be to retrieve only the right child file information.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org