After profiling the ProCoSys application, getting a dummy instance of the command in CommandSecurityProxies.Generate accounts for 5,3% of samples.
It is using the container to retrieve a command, which is potentially very slow. It should just be using the activator to create instances, as all commands should have a default constructor.
After profiling the ProCoSys application, getting a dummy instance of the command in
CommandSecurityProxies.Generate
accounts for 5,3% of samples.It is using the container to retrieve a command, which is potentially very slow. It should just be using the activator to create instances, as all commands should have a default constructor.