General Performance Tip: Retrieving the Process Id

When working with .NET, developers can obtain the initiating process ID using either Process.GetCurrentProcess().Id or System.Environment.ProcessId. Benchmark tests show that the former is slightly more performant. Additionally, the setup for this is specified in EditorConfig as a suggestion for code quality.