Slow startup time with a Unity-based application

I have a console application that uses Unity. In app.config, I have 20 or so types registered in the default container.

I believe that launching the application (until I start to see some kind of source output) is very slow compared to a console application created without Unity.

Anyway, can I improve this startup time?

+3
source share
1 answer

It is always worth taking measurements to track the source of performance problems. Try using the StopWatch class or profiling tool to help you find what takes time. Is it the time taken to load your config? Is it time to solve the first class?

0
source

Source: https://habr.com/ru/post/1718033/


All Articles