Reputation: 1145
Some time ago I noticed that my release version of my application starts 2 times slower than the debug version (10-12 seconds for release and 4-5 for debug). That was because I set platform target to Any CPU for release build and x86 for Debug build. When I change release configuration to x86 then both versions need the same time to start.
I don't understand why setting platform to Any CPU or x64 so much slows application startup.
In my application I am using following libraries:
Maybe one of used libraries slows my application startup?
Upvotes: 4
Views: 740
Reputation: 31153
.NET has currently (pre-4.6) different JIT engines for x86 and x64 platforms and they have different startup times. In 4.6 the engines will be more similar and the startup time should be less different.
You can already test with 4.6 pre-version if this is the cause.
Some discussion about this also at https://stackoverflow.com/a/29595194/1806780
Upvotes: 4