|Subject:||Re: IdFtpServer - poor performance of a listing directory|
|Posted by:||Remy Lebeau \(TeamB\) (firstname.lastname@example.org)|
|Date:||Wed, 10 Sep 2008|
"Tomasz B" <t.berg.REMO…@slican.pl> wrote in message
> Does anybody know how to speed up this process?
> 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,
> 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
Remy Lebeau (TeamB)
IdFtpServer - poor performance of a listing directory posted by Tomasz B on Tue, 09 Sep 2008