Project

General

Profile

Actions

Bug #5212

closed

PCH is not very effective

Added by Davide Pesavento over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Build
Target version:
Start date:
06/04/2022
Due date:
% Done:

100%

Estimated time:

Description

The precompiled header core/common.hpp is used only for translation units in core/ (basically only network.cpp since version.cpp doesn't need any include). This makes the PCH feature almost useless. The bulk of NFD's code is in daemon/ and that's where the PCH should be applied.

Moreover, it would be beneficial to precompile a few additional headers on top of core/common.hpp, such as ndn-cxx/util/logger.hpp which turned out to be one of the slowest to compile due to lots of transitive Boost includes.

Actions

Also available in: Atom PDF