CPU Time - WeOnlyDo Discussion board

CPU Time (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Viking, Friday, November 12, 2004, 22:35 (7317 days ago)

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

by wodSupport, Friday, November 12, 2004, 22:40 (7317 days ago) @ Viking

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

by Viking, Monday, November 15, 2004, 14:49 (7314 days ago) @ wodSupport


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

by wodSupport, Monday, November 15, 2004, 14:53 (7314 days ago) @ Viking

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

by Viking, Monday, November 15, 2004, 15:02 (7314 days ago) @ wodSupport

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

by wodSupport, Monday, November 15, 2004, 15:04 (7314 days ago) @ Viking

Viking,

wodSFTP.NET is fully C# managed code, it's not wrapper arround win32 library.