How can I improve the startup time of Windsor 3.0?

I tried Windsor 3.0 to find out if we can upgrade.

Next console application

var t = DateTime.Now; var container = new WindsorContainer(); Debug.WriteLine("Created in " + (DateTime.Now - t).TotalMilliseconds); 

Gets 5421.875ms (sequentially above 5000ms) to create a WindsorContainer.

Any suggestions for reducing creation time?

+4
source share
2 answers

The source of this behavior is the initialization of performance counters.

Beginning in beta 2 (currently in trunk), performance counters will be disabled by default, so the performance hit should disappear.

+3
source

How can I improve Windsor 3.0 performance?

In this case:

  • Make sure you have PDB Castle.Windsor and Castle.Core
  • Receive .
  • Place a breakpoint in an instance of WindsorContainer
  • Debug it step by step until you find the source of the problem.
  • Fix the problem
  • Send a transfer request.

Or use some profiler like dotTrace to find the reason.

+1
source

All Articles