Saar Carmi

A .NET Blog

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

Subscriptions

Post Categories



Sunday, September 05, 2004 - Posts

GetCurrentProcess - Performance Issue

I used the following code line to get the process name. (Our application calls that line once in each execution).
System.Diagnostics.Process.GetCurrentProcess().ProcessName

Out client installed the application on two machines:
This first one is Compaq dual process. It takes about 0.3 seconds to run that line.

The other machine is a 4 CPU partition of Unisys machine. On that machine it takes between 1 to 50 seconds to execute that code.

I could find what causes that difference.

posted Sunday, September 05, 2004 11:27 AM by saarc with 6 Comments




Powered by Dot Net Junkies, by Telligent Systems