开发者

How to compile and start VSC++ Projects Faster?

开发者 https://www.devze.com 2023-03-03 18:23 出处:网络
What techniques do you use to compile and start VSC++ projects fast? For us, especially the loading of all the dlls take 开发者_运维问答a long time. Is there a way to speed this up? The project loads

What techniques do you use to compile and start VSC++ projects fast?

For us, especially the loading of all the dlls take 开发者_运维问答a long time. Is there a way to speed this up? The project loads a ton of .dlls and some of them are especially slow.

Now that we use unity build for our projects, it already compiles blazingly fast! =)

Thanks!


DLLs have a default load location embedded into them. This is typically defaulted by the development tool to the same address for all DLLs. This means that whenn the DLLs are loaded into memory, there are a lot of collisions and the DLL has to be readdressed and loaded into a free memory location. When working on a project that had a significant number of DLL dependencies, we were able to make significant load time savings by setting the default address for our DLLs.

A fuller explanation into what's going on and how it helps can be found at drdobbs.

It's been some years since I've done this, so it may be out of date now.

It's worth keeping in mind if you go down this route, it might not play very well with .net.


Use delay-loaded libraries. It's a simple compile settings change (typically no code changes needed), yet it can offer very big improvements.

Of course, you still have the load times of those DLLs when you actually use them, but if you have many DLLs there's also a large chance that you won't use all of them all of the time.

0

精彩评论

暂无评论...
验证码 换一张
取 消