diff options
author | Ashod Nakashian <ashodnakashian@yahoo.com> | 2015-11-14 18:48:49 -0500 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-15 20:31:35 +0000 |
commit | 06116bd15b1fb8b03e65e1166f5ddad929614246 (patch) | |
tree | b2849066315c89f1bcd1d1c9bc903b82e7c00523 /basic/inc | |
parent | 6474336e36447b1797bdf429a5f2ad5016a34262 (diff) |
Fast PCH generator and optimized PCH files
Ported update_pch.sh to Python with improved performance
and features. The new script is invoked from the same
update_pch.sh which calls it for each library in
parallel, although it can be invoked directly.
The ported script (update_pch) updates all PCH files
in ~15 seconds where the old script took ~4500 seconds.
In addition, the new script supports 3-tiered headers
(system, module, and local) and is very flexible to
support other improvement. It has a per-library
optimal configuration settings that can be updated
using another new scripts (update_pch_autotune.sh)
which finds optimal per-PCH settings.
PCH files have been generated using the new scripts
which builds significantly faster (2-3x, depending
on module and configuration) and the intermediate
binaries are noticably smaller (by several GBs).
The new script stamps each generated PCH file with
the command that generated it to make it trivial
for users to update them, and also adds the command
to invoke another script (update_pch_bisect) that
helps find missing headers or conflicting headers
that may break the build after updating the PCH.
Finally update_pch has built-in unit-tests for
makefile parsing and other core functionality.
Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa
Reviewed-on: https://gerrit.libreoffice.org/19965
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basic/inc')
-rw-r--r-- | basic/inc/pch/precompiled_sb.hxx | 106 |
1 files changed, 59 insertions, 47 deletions
diff --git a/basic/inc/pch/precompiled_sb.hxx b/basic/inc/pch/precompiled_sb.hxx index a10d0949db6a..f7a0d4df2b8d 100644 --- a/basic/inc/pch/precompiled_sb.hxx +++ b/basic/inc/pch/precompiled_sb.hxx @@ -8,78 +8,90 @@ */ /* - This file has been autogenerated by update_pch.sh . It is possible to edit it - manually (such as when an include file has been moved/renamed/removed. All such + This file has been autogenerated by update_pch.sh. It is possible to edit it + manually (such as when an include file has been moved/renamed/removed). All such manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). + + Generated on 2015-11-14 14:16:28 using: + ./bin/update_pch basic sb --cutoff=2 --exclude:system --exclude:module --include:local + + If after updating build fails, use the following command to locate conflicting headers: + ./bin/update_pch_bisect ./basic/inc/pch/precompiled_sb.hxx "/opt/lo/bin/make basic.build" --find-conflicts */ -#include "math.h" -#include <boost/optional.hpp> -#include <memory> -#include <com/sun/star/bridge/oleautomation/Decimal.hpp> -#include <com/sun/star/bridge/oleautomation/XAutomationObject.hpp> -#include <com/sun/star/i18n/LocaleCalendar2.hpp> -#include <com/sun/star/lang/Locale.hpp> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> -#include <com/sun/star/script/XErrorQuery.hpp> -#include <com/sun/star/sheet/XFunctionAccess.hpp> -#include <com/sun/star/ucb/SimpleFileAccess.hpp> -#include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/XInterface.hpp> -#include <com/sun/star/util/DateTime.hpp> -#include <comphelper/processfactory.hxx> -#include <comphelper/string.hxx> +#include <cassert> #include <config_features.h> -#include <config_version.h> #include <cstddef> +#include <cstdlib> #include <ctype.h> -#include <errno.h> -#include <float.h> -#include <i18nlangtag/lang.h> -#include <iomanip> -#include <list> #include <math.h> -#include <ooo/vba/XHelperInterface.hpp> +#include <memory> +#include <new> +#include <ostream> +#include <sstream> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <string> +#include <boost/optional.hpp> #include <osl/file.hxx> +#include <osl/mutex.hxx> #include <osl/process.h> +#include <osl/thread.h> #include <osl/time.h> -#include <random> #include <rtl/character.hxx> -#include <rtl/instance.hxx> #include <rtl/math.hxx> #include <rtl/strbuf.hxx> +#include <rtl/string.h> #include <rtl/string.hxx> +#include <rtl/stringutils.hxx> +#include <rtl/textenc.h> #include <rtl/ustrbuf.hxx> #include <rtl/ustring.hxx> #include <sal/config.h> +#include <sal/detail/log.h> #include <sal/log.hxx> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> +#include <sal/saldllapi.h> +#include <sal/types.h> +#include <vcl/dllapi.h> +#include <vcl/mapmod.hxx> +#include <vcl/msgbox.hxx> +#include <vcl/settings.hxx> +#include <vcl/svapp.hxx> +#include <basrid.hxx> +#include <com/sun/star/frame/XModel.hpp> +#include <com/sun/star/i18n/KCharacterType.hpp> +#include <com/sun/star/i18n/KParseTokens.hpp> +#include <com/sun/star/i18n/KParseType.hpp> +#include <com/sun/star/i18n/ParseResult.hpp> +#include <com/sun/star/i18n/XCharacterClassification.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/util/DateTime.hpp> +#include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> +#include <i18nlangtag/lang.h> +#include <i18nlangtag/languagetag.hxx> +#include <sbobjmod.hxx> +#include <sbxbase.hxx> #include <svl/SfxBroadcaster.hxx> #include <svl/zforlist.hxx> -#include <tools/color.hxx> -#include <tools/date.hxx> #include <tools/debug.hxx> #include <tools/errcode.hxx> -#include <tools/fract.hxx> -#include <tools/shl.hxx> +#include <tools/link.hxx> +#include <tools/mapunit.hxx> #include <tools/stream.hxx> +#include <tools/toolsdllapi.h> #include <tools/urlobj.hxx> -#include <tools/wintypes.hxx> -#include <tools/wldcrd.hxx> #include <unotools/charclass.hxx> -#include <unotools/syslocale.hxx> -#include <unotools/ucbstreamhelper.hxx> -#include <vcl/dibtools.hxx> -#include <vcl/jobset.hxx> -#include <vcl/mapmod.hxx> -#include <vcl/msgbox.hxx> -#include <vcl/settings.hxx> -#include <vcl/sound.hxx> -#include <vcl/svapp.hxx> -#include <vcl/timer.hxx> -#include <vcl/wrkwin.hxx> +#include <unotools/unotoolsdllapi.h> +#include <basic/basicdllapi.h> +#include <basic/sbuno.hxx> +#include <basic/sbx.hxx> +#include <basic/sbxfac.hxx> +#include <basic/sbxform.hxx> +#include <basic/sbxobj.hxx> +#include <basic/sbxvar.hxx> /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |