Tip: Don’t rely on environment variables for critical decisions

I saw a mail this week asking how you can determine what bitness your process is running in, and one of the suggestions was to check for the PROCESSOR_ARCHITEW6432 environment variable. If that variable exists, you know you’re on 64 bit Windows in a 32 bit process. It’s likely that the questioner needs to know…

0

Use of SGEN.exe to avoid common XmlSerializer performance pitfalls

This week, I encountered a test scenario which makes use of an XmlSerializer on it’s startup path. Unfortunately, MSDN’s documentation for the type is not clear on the performance impact of using an XmlSerializer. The documentation on introducing XML serialization, found here, actually mentions the solution, but it also does not state what the problem…

1