C ++ visual studio inline

When creating projects in Visual Studio(I use 2008 SP1) there is an optimization option called Enable link-time code generation. As far as I understand, this allows you to use certain blending methods, and it sounds pretty cool.

However, using this option significantly increases the size of the created static libraries. In my case, it was something like 40 mb -> 250 mb, and, obviously, the building process can become REALLY slow if you have even 5-6 libraries that are huge.

So my question is - is it worth it? . Is the effect of link-time code generation measurable so that I leave it on and suffer from sloooooooooooowow builds?

Thank.

+3
source share
2 answers

How should we know? You are the one who suffers more slowly. If you can live with slower builds, then this speeds up your code, which is good.

If you need faster builds, you lose optimization by making your code slower.

Is it worth it? It is up to you and nothing else. How patient are you? How long can you wait for assembly?

This can significantly speed up your code. If you need speed, this is a very valuable optimization.

+2
source

This is for you. This is rather a subjective question. Here are a few things to help you make this definition:

  • Compare performance with and without this feature. Sometimes smaller code works faster, sometimes more inlays work. It is not always so clearly carved and dry.
  • ? , ?
  • ? , , / ?

, , . , , .

+2

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


All Articles