doing this:
new WindsorContainer()
takes 4 seconds, sometimes 7
I did some performance tests with DotTrace and found that the problem is in this method:
Castle.Windsor.Diagnostics.PerformanceMetricsFactory.Initialize()
which at the end does this:
Microsoft.Win32.RegistryKey.InternalGetValue(String, Object, Boolean, Boolean)
anybody knows how to make it not to do this, so that the constructor would work instantly and not 4 seconds?
This is a known issue in Windsor 3 beta 1. Performance counter is opt-in in current trunk (as it will be in final version 3)