On Wed, Apr 20, 2011 at 11:47 AM, Marco Crivellaro <mcr...@optasportsdata.com> wrote: > Hi, > when using camel as FTP/SFTP producer the exchange process is taking longer > time when many files are stored in the destination folder. > > This should be related to the operations.existsFile calls being processed by > the method. > > At the moment GenericFileProducer.processExchange is calling twice > operations.existsFile(target), why not > calling it once caching its value? >
Yeah that's possible. I will try to do that. > > Camel 2.8-SNAPSHOT sftp exchange process appears to take longer than in > Camel 2.5, the only difference I can spot is the lock acquired on the file, > in the usecase I have there is no need to acquire a lock on the file, would > it be possible to introduce this as an component option? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/GenericFileOperations-optimization-tp4315363p4315363.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com CamelOne 2011: http://fusesource.com/camelone2011/ Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/