Re: IdFtpServer - poor performance of a listing directory

Giganews Newsgroups
Subject: Re: IdFtpServer - poor performance of a listing directory
Posted by:  Remy Lebeau \(TeamB\) (no.spam@no.spam.com)
Date: Wed, 10 Sep 2008

"Tomasz B" <t.berg.REMO…@slican.pl> wrote in message
news:7B8ABAC29062E340t.berg.REMO…@slican.pl...

> Does anybody know how to speed up this process?

Not really.

> I'm serving IdFTPServer::OnListDirectory very fast (in time less than 1
> second) - adding about 400 files into a TIdFTPListOutputItem list (on
> averege each file name contains 100 characters). After that iFTPserver
> utilizes 100% CPU (on quad core CPU wtf?) and as I imagine is trying
> to send generated listing into client.

Generating a directory listing requires quite a bit of processing as Indy
supports many different formats.  Nothing that should be eating up the CPU,
though.

> Below I pasted a call stack of a thread which I believe is eating my CPU:

Have you tried profiling the code yet?  That is about the only way to find
runtime bottlenecks.

--
Remy Lebeau (TeamB)

Replies

In response to

IdFtpServer - poor performance of a listing directory posted by Tomasz B on Tue, 09 Sep 2008