Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


On 12/11/2014 03:09 AM, Kohei Yoshida wrote:
Please share your opinions.

I think, as always, the pros and cons have to be weighed.

The benefit is decoupling. It apparently has a positive impact on the size of debug information put into link objects by today's toolchains. (And I would be surprised if it had an impact on any non-debug parts of link objects.) Another positive impact is improved build time with today's toolchains (sans pch). (But remember that pimpl-ization will always need to include <memory> into the include file, so don't go overboard with erasing standard library includes from include files.)

Disadvantages that come to mind are increased usage of dynamic memory (which can impact both space and time), and, to some extend at least, increased complexity of the code "in the small" (although complexity "in the large" is probably reduced by the decoupling).

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.