You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/07/25 12:29:00 UTC
[jira] [Updated] (CAMEL-18285) camel-file - Lazy-loading for file length and last modified attributes for faster performance
[ https://issues.apache.org/jira/browse/CAMEL-18285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-18285:
--------------------------------
Summary: camel-file - Lazy-loading for file length and last modified attributes for faster performance (was: camel-file - Lazy-loading for file length and last modified attributes)
> camel-file - Lazy-loading for file length and last modified attributes for faster performance
> ---------------------------------------------------------------------------------------------
>
> Key: CAMEL-18285
> URL: https://issues.apache.org/jira/browse/CAMEL-18285
> Project: Camel
> Issue Type: Improvement
> Components: camel-file
> Affects Versions: 3.18.0
> Reporter: Radovan Netuka
> Assignee: Radovan Netuka
> Priority: Major
> Fix For: 3.18.1, 3.19.0
>
>
> In network-mounted drives, a user can experience long processing time due to File#length and File#lastModified large invocation time.
>
> Use case:
> There is a network-mounted drive. A user is polling a directory with thousands of files inside, but only needs to process few of them.
>
> Current behaviour:
> File length and last modified attributes are read for each such file, seriously slowing the processing time.
>
> Expected behaviour:
> File length and last modified attributes are read only when needed.
>
> Affected method is FileConsumer#asGenericFile. A solution for this can be to load these two attributes lazily.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)