CPU Time (wodSFTP / wodSFTP.NET / wodSFTPdll)
First of all, thanks guys for the great job.
I have one problem while using SFTP.NET library though. Everything works well but the CPU time consuming goes up to 30 (Task Manager) when I'm downloading a file. And even worse, if I'm running several processes on the same box, the application will occupy all processor time.
I tried to run another client, open source FileZilla. This one consumes 5-10 of CPU time.
Any thoughts about this issue?
thanks,
Viking
Re: CPU Time
Viking,
my first answer to this would be - this is NET, managed code, this all depends on NET framework and it's internal code handling.
But we'll run it against some profiler to see if there's anything we could do about it.
Re: CPU Time
my first answer to this would be - this is NET, managed code, this all depends on NET framework and it's internal code handling.
But we'll run it against some profiler to see if there's anything we could do about it.
I would say it rather depends on how well the code is written. No offence though
Is there any chance that the CPU load will be decreased? It's a very important issue for our project.
BTW, do you guys use some kind of wrapped COM object for sftp client? Maybe wrapped managed C++? Or everything is pure C#?
Also the source code you supply, is it pure C#?
Re: CPU Time
Viking,
sure you can use wodSFTP ActiveX inside your NET project too, VS will create wrapper for you. It has same interface as wodSFTP.NET so once NET version decreases CPU utilisation you will be able to easily switch to it. ActiveX is native win32 code and is optimized better than NET, of course.
Re: CPU Time
I'm sorry, I didn't make myself clear.
I was asking about the .NET component. Is it made of pure c#? The slow down can be an issue if a wrapped COM object is used in .NET assembly.
Re: CPU Time
Viking,
wodSFTP.NET is fully C# managed code, it's not wrapper arround win32 library.