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 /sal/inc/pch | |
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 'sal/inc/pch')
-rw-r--r-- | sal/inc/pch/precompiled_sal.hxx | 100 |
1 files changed, 30 insertions, 70 deletions
diff --git a/sal/inc/pch/precompiled_sal.hxx b/sal/inc/pch/precompiled_sal.hxx index 2454f4b573f5..838e4414e2c3 100644 --- a/sal/inc/pch/precompiled_sal.hxx +++ b/sal/inc/pch/precompiled_sal.hxx @@ -8,106 +8,66 @@ */ /* - 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:37 using: + ./bin/update_pch sal sal --cutoff=5 --exclude:system --include:module --include:local + + If after updating build fails, use the following command to locate conflicting headers: + ./bin/update_pch_bisect ./sal/inc/pch/precompiled_sal.hxx "/opt/lo/bin/make sal.build" --find-conflicts */ -#include "boost/bind.hpp" -#include "boost/noncopyable.hpp" -#include "osl/diagnose.h" -#include "osl/diagnose.hxx" -#include "osl/module.h" -#include "osl/module.hxx" -#include "osl/pipe.h" -#include "osl/process.h" -#include "osl/socket.h" -#include "osl/thread.h" -#include "osl/thread.hxx" -#include "osl/time.h" -#include "rtl/alloc.h" -#include "rtl/bootstrap.h" -#include "rtl/bootstrap.hxx" -#include "rtl/character.hxx" -#include "rtl/instance.hxx" -#include "rtl/locale.h" -#include "rtl/malformeduriexception.hxx" -#include "rtl/math.h" -#include "rtl/math.hxx" -#include "rtl/process.h" -#include "rtl/strbuf.h" -#include "rtl/strbuf.hxx" -#include "rtl/string.h" -#include "rtl/string.hxx" -#include "rtl/tencinfo.h" -#include "rtl/textcvt.h" -#include "rtl/textenc.h" -#include "rtl/unload.h" -#include "rtl/uri.h" -#include "rtl/uri.hxx" -#include "rtl/ustrbuf.h" -#include "rtl/ustrbuf.hxx" -#include "rtl/ustring.h" -#include "rtl/ustring.hxx" -#include "rtl/uuid.h" -#include <algorithm> -#include <assert.h> -#include <boost/noncopyable.hpp> -#include <memory> #include <cassert> -#include <config_features.h> -#include <config_folders.h> -#include <cstdarg> #include <cstddef> -#include <cstdio> #include <cstdlib> #include <cstring> -#include <float.h> -#include <limits.h> -#include <list> -#include <math.h> +#include <new> +#include <string.h> +#include <boost/bind.hpp> +#include <boost/noncopyable.hpp> #include <osl/diagnose.h> -#include <osl/doublecheckedlocking.h> +#include <osl/diagnose.hxx> #include <osl/endian.h> -#include <osl/file.h> #include <osl/file.hxx> #include <osl/interlck.h> -#include <osl/module.h> +#include <osl/module.hxx> #include <osl/mutex.h> -#include <osl/mutex.hxx> -#include <osl/process.h> #include <osl/profile.hxx> #include <osl/security.hxx> -#include <osl/thread.h> #include <osl/thread.hxx> #include <osl/time.h> #include <rtl/alloc.h> -#include <rtl/bootstrap.h> +#include <rtl/bootstrap.hxx> #include <rtl/byteseq.h> -#include <rtl/byteseq.hxx> +#include <rtl/character.hxx> #include <rtl/cipher.h> #include <rtl/crc.h> #include <rtl/digest.h> -#include <rtl/instance.hxx> -#include <rtl/malformeduriexception.hxx> +#include <rtl/math.hxx> #include <rtl/process.h> #include <rtl/random.h> #include <rtl/strbuf.hxx> #include <rtl/string.h> -#include <rtl/string.hxx> +#include <rtl/stringutils.hxx> #include <rtl/tencinfo.h> +#include <rtl/textcvt.h> +#include <rtl/textenc.h> +#include <rtl/unload.h> #include <rtl/uri.hxx> -#include <rtl/ustrbuf.hxx> +#include <rtl/ustrbuf.h> #include <rtl/ustring.h> #include <rtl/ustring.hxx> #include <rtl/uuid.h> -#include <sstream> -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <unordered_map> -#include <vector> +#include <sal/alloca.h> +#include <sal/config.h> +#include <sal/detail/log.h> +#include <sal/log.hxx> +#include <sal/macros.h> +#include <sal/saldllapi.h> +#include <sal/types.h> +#include <internal/rtllifecycle.h> /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |