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.