Opened 9 years ago

Closed 9 years ago

#8773 closed Bugs (fixed)

Shrink Boost.Log to reasonable size

Reported by: Antony Polukhin Owned by: Andrey Semashev
Milestone: Boost 1.55.0 Component: log
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

Libraries of libboost_log_setup* weight too much.

This ticket is created because of question in Boost mailing lists

Change History (6)

comment:1 by Andrey Semashev, 9 years ago

(In [85031]) Extracted default formatter factory to a separate translation unit. Made all default factories optional, the factories can be disabled with the new config macro BOOST_LOG_WITHOUT_DEFAULT_FACTORIES. Refs #8773, #8786.

comment:2 by Andrey Semashev, 9 years ago

(In [85201]) Settings parser rewritten without Boost.Spirit to reduce compiled binary size. Refs #8773.

comment:3 by Andrey Semashev, 9 years ago

(In [85202]) Extracted Boost.Xpressive use to a separate translation unit in attempt to work around MinGW 64 bit compiler limitation on the number of sections in the object file. Made some changes to reduce binary size. Refs #8786, #8773.

comment:4 by Andrey Semashev, 9 years ago

(In [85303]) Formatter parser rewritten to avoid using Boost.Spirit to reduce compiled binary size. Refs #8773.

comment:5 by Andrey Semashev, 9 years ago

(In [85391]) Filter parser rewritten to avoid using Boost.Spirit to reduce compiled binary size. Refs #8773.

comment:6 by Andrey Semashev, 9 years ago

Resolution: fixed
Status: newclosed

After all modifications the library sizes were reduced:

 22 688 304 libboost_log-vc110-mt-1_55.lib
 74 525 462 libboost_log-vc110-mt-gd-1_55.lib
 79 925 506 libboost_log_setup-vc110-mt-1_55.lib
208 089 566 libboost_log_setup-vc110-mt-gd-1_55.lib
Note: See TracTickets for help on using tickets.