|Subject:||IdFtpServer - poor performance of a listing directory|
|Posted by:||Tomasz B (t.berg.REMO…@slican.pl)|
|Date:||Tue, 09 Sep 2008|
I've again a little problem with IdFTPServer - it looks like it generate
directory listing very slow.
Does anybody know how to speed up this process?
BCB6, indy 10 VCL, svn revision 3252
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.
But client has already disconnect from server (it ugly propery of ftp
client from total commander).
I can understand than ftp client should have bigger time out value but
linux (vsFTPd 2.0.5) run on PPC (25 MHz) has enough 'power' to send
directory listening which contains more than 2000 files and can do it
before totalcmd disconnect.
Below I pasted a call stack of a thread which I believe is eating my CPU: