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 /comphelper | |
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 'comphelper')
-rw-r--r-- | comphelper/inc/pch/precompiled_comphelper.hxx | 295 |
1 files changed, 118 insertions, 177 deletions
diff --git a/comphelper/inc/pch/precompiled_comphelper.hxx b/comphelper/inc/pch/precompiled_comphelper.hxx index d83ade8e5190..92f700935906 100644 --- a/comphelper/inc/pch/precompiled_comphelper.hxx +++ b/comphelper/inc/pch/precompiled_comphelper.hxx @@ -8,222 +8,163 @@ */ /* - 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 comphelper comphelper --cutoff=4 --exclude:system --include:module --include:local + + If after updating build fails, use the following command to locate conflicting headers: + ./bin/update_pch_bisect ./comphelper/inc/pch/precompiled_comphelper.hxx "/opt/lo/bin/make comphelper.build" --find-conflicts */ #include <algorithm> -#include <assert.h> +#include <cassert> +#include <config_typesizes.h> +#include <cstddef> +#include <cstring> +#include <exception> +#include <functional> +#include <iomanip> +#include <map> +#include <math.h> +#include <memory> +#include <new> +#include <ostream> +#include <stddef.h> +#include <string.h> +#include <unordered_map> +#include <utility> +#include <vector> #include <boost/current_function.hpp> +#include <boost/functional/hash.hpp> #include <boost/noncopyable.hpp> -#include <memory> -#include <cassert> -#include <com/sun/star/accessibility/AccessibleEventId.hpp> -#include <com/sun/star/accessibility/AccessibleStateType.hpp> -#include <com/sun/star/accessibility/AccessibleTextType.hpp> -#include <com/sun/star/accessibility/TextSegment.hpp> -#include <com/sun/star/accessibility/XAccessible.hpp> +#include <boost/optional.hpp> +#include <osl/conditn.hxx> +#include <osl/diagnose.h> +#include <osl/file.hxx> +#include <osl/interlck.h> +#include <osl/mutex.hxx> +#include <osl/thread.h> +#include <osl/thread.hxx> +#include <osl/time.h> +#include <rtl/alloc.h> +#include <rtl/byteseq.h> +#include <rtl/character.hxx> +#include <rtl/digest.h> +#include <rtl/instance.hxx> +#include <rtl/math.hxx> +#include <rtl/random.h> +#include <rtl/ref.hxx> +#include <rtl/strbuf.h> +#include <rtl/strbuf.hxx> +#include <rtl/string.h> +#include <rtl/string.hxx> +#include <rtl/stringutils.hxx> +#include <rtl/textcvt.h> +#include <rtl/textenc.h> +#include <rtl/unload.h> +#include <rtl/ustrbuf.hxx> +#include <rtl/ustring.h> +#include <rtl/ustring.hxx> +#include <rtl/uuid.h> +#include <sal/config.h> +#include <sal/log.hxx> +#include <sal/macros.h> +#include <sal/saldllapi.h> +#include <sal/types.h> +#include <sal/typesizes.h> +#include <salhelper/salhelperdllapi.h> +#include <salhelper/simplereferenceobject.hxx> +#include <salhelper/thread.hxx> +#include <com/sun/star/accessibility/XAccessibleComponent.hpp> #include <com/sun/star/accessibility/XAccessibleContext.hpp> -#include <com/sun/star/awt/FontDescriptor.hpp> -#include <com/sun/star/awt/FontStrikeout.hpp> -#include <com/sun/star/awt/FontUnderline.hpp> -#include <com/sun/star/awt/XRequestCallback.hpp> -#include <com/sun/star/beans/IllegalTypeException.hpp> +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp> +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.hpp> #include <com/sun/star/beans/NamedValue.hpp> -#include <com/sun/star/beans/NotRemoveableException.hpp> -#include <com/sun/star/beans/Pair.hpp> #include <com/sun/star/beans/Property.hpp> #include <com/sun/star/beans/PropertyAttribute.hpp> -#include <com/sun/star/beans/PropertyExistException.hpp> -#include <com/sun/star/beans/PropertyState.hpp> #include <com/sun/star/beans/PropertyValue.hpp> -#include <com/sun/star/beans/StringPair.hpp> -#include <com/sun/star/beans/UnknownPropertyException.hpp> +#include <com/sun/star/beans/XFastPropertySet.hpp> +#include <com/sun/star/beans/XMultiPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySetInfo.hpp> -#include <com/sun/star/beans/theIntrospection.hpp> -#include <com/sun/star/configuration/ReadOnlyAccess.hpp> -#include <com/sun/star/configuration/ReadWriteAccess.hpp> -#include <com/sun/star/configuration/XReadWriteAccess.hpp> -#include <com/sun/star/configuration/theDefaultProvider.hpp> -#include <com/sun/star/container/ElementExistException.hpp> -#include <com/sun/star/container/XChild.hpp> -#include <com/sun/star/container/XContainerQuery.hpp> -#include <com/sun/star/container/XEnumerableMap.hpp> -#include <com/sun/star/container/XHierarchicalNameAccess.hpp> -#include <com/sun/star/container/XHierarchicalNameReplace.hpp> -#include <com/sun/star/container/XIndexAccess.hpp> -#include <com/sun/star/container/XIndexContainer.hpp> -#include <com/sun/star/container/XNameAccess.hpp> -#include <com/sun/star/container/XNameContainer.hpp> -#include <com/sun/star/datatransfer/XTransferable.hpp> -#include <com/sun/star/document/XDocumentProperties.hpp> -#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp> -#include <com/sun/star/document/XTypeDetection.hpp> -#include <com/sun/star/embed/Aspects.hpp> -#include <com/sun/star/embed/ElementModes.hpp> -#include <com/sun/star/embed/EmbedMisc.hpp> -#include <com/sun/star/embed/EmbedStates.hpp> -#include <com/sun/star/embed/EmbeddedObjectCreator.hpp> -#include <com/sun/star/embed/EntryInitModes.hpp> -#include <com/sun/star/embed/FileSystemStorageFactory.hpp> -#include <com/sun/star/embed/StorageFactory.hpp> -#include <com/sun/star/embed/XEmbedPersist.hpp> -#include <com/sun/star/embed/XEncryptionProtectedSource2.hpp> -#include <com/sun/star/embed/XLinkCreator.hpp> -#include <com/sun/star/embed/XLinkageSupport.hpp> -#include <com/sun/star/embed/XOptimizedStorage.hpp> -#include <com/sun/star/embed/XStorage.hpp> -#include <com/sun/star/embed/XTransactedObject.hpp> -#include <com/sun/star/frame/Desktop.hpp> -#include <com/sun/star/frame/DoubleInitializationException.hpp> -#include <com/sun/star/frame/UntitledNumbersConst.hpp> -#include <com/sun/star/frame/XDesktop.hpp> -#include <com/sun/star/frame/XDispatchProvider.hpp> -#include <com/sun/star/frame/XStorable.hpp> -#include <com/sun/star/frame/XSynchronousDispatch.hpp> -#include <com/sun/star/frame/XTitle.hpp> -#include <com/sun/star/i18n/BreakIterator.hpp> -#include <com/sun/star/i18n/CharType.hpp> -#include <com/sun/star/i18n/CharacterClassification.hpp> -#include <com/sun/star/i18n/CharacterIteratorMode.hpp> -#include <com/sun/star/i18n/Collator.hpp> -#include <com/sun/star/i18n/KCharacterType.hpp> -#include <com/sun/star/i18n/WordType.hpp> -#include <com/sun/star/io/TempFile.hpp> -#include <com/sun/star/io/XActiveDataSource.hpp> -#include <com/sun/star/io/XMarkableStream.hpp> -#include <com/sun/star/io/XObjectInputStream.hpp> -#include <com/sun/star/io/XObjectOutputStream.hpp> -#include <com/sun/star/io/XOutputStream.hpp> -#include <com/sun/star/io/XPersistObject.hpp> -#include <com/sun/star/io/XSeekableInputStream.hpp> -#include <com/sun/star/io/XSequenceOutputStream.hpp> -#include <com/sun/star/io/XStream.hpp> -#include <com/sun/star/io/XTruncate.hpp> +#include <com/sun/star/beans/XPropertySetOption.hpp> +#include <com/sun/star/beans/XPropertyState.hpp> +#include <com/sun/star/io/XInputStream.hpp> #include <com/sun/star/lang/DisposedException.hpp> +#include <com/sun/star/lang/EventObject.hpp> #include <com/sun/star/lang/IllegalArgumentException.hpp> -#include <com/sun/star/lang/Locale.hpp> -#include <com/sun/star/lang/NotInitializedException.hpp> -#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> #include <com/sun/star/lang/XComponent.hpp> +#include <com/sun/star/lang/XEventListener.hpp> #include <com/sun/star/lang/XInitialization.hpp> -#include <com/sun/star/lang/XLocalizable.hpp> -#include <com/sun/star/lang/XMultiComponentFactory.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XSingleComponentFactory.hpp> #include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <com/sun/star/lang/XTypeProvider.hpp> -#include <com/sun/star/logging/LogLevel.hpp> -#include <com/sun/star/logging/LoggerPool.hpp> -#include <com/sun/star/reflection/ProxyFactory.hpp> -#include <com/sun/star/reflection/XIdlClass.hpp> -#include <com/sun/star/reflection/XIdlMethod.hpp> -#include <com/sun/star/reflection/XIdlReflection.hpp> -#include <com/sun/star/reflection/XProxyFactory.hpp> -#include <com/sun/star/reflection/theCoreReflection.hpp> -#include <com/sun/star/resource/OfficeResourceLoader.hpp> -#include <com/sun/star/resource/XResourceBundle.hpp> -#include <com/sun/star/resource/XResourceBundleLoader.hpp> -#include <com/sun/star/script/Converter.hpp> -#include <com/sun/star/script/XEngineListener.hpp> -#include <com/sun/star/script/XEventAttacher2.hpp> -#include <com/sun/star/script/XEventAttacherManager.hpp> -#include <com/sun/star/script/XScriptListener.hpp> -#include <com/sun/star/task/DocumentMSPasswordRequest2.hpp> -#include <com/sun/star/task/DocumentPasswordRequest2.hpp> -#include <com/sun/star/task/PasswordRequest.hpp> -#include <com/sun/star/task/XInteractionAbort.hpp> +#include <com/sun/star/lang/XUnoTunnel.hpp> +#include <com/sun/star/registry/XRegistryKey.hpp> #include <com/sun/star/task/XInteractionHandler.hpp> -#include <com/sun/star/task/XInteractionPassword2.hpp> -#include <com/sun/star/ucb/AlreadyInitializedException.hpp> -#include <com/sun/star/ucb/InteractiveIOException.hpp> -#include <com/sun/star/ucb/SimpleFileAccess.hpp> -#include <com/sun/star/ucb/UnsupportedDataSinkException.hpp> -#include <com/sun/star/ucb/XAnyCompareFactory.hpp> +#include <com/sun/star/task/XInteractionRequest.hpp> +#include <com/sun/star/uno/Any.h> #include <com/sun/star/uno/Any.hxx> -#include <com/sun/star/uno/DeploymentException.hpp> -#include <com/sun/star/uno/Exception.hpp> +#include <com/sun/star/uno/Reference.h> #include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/uno/Sequence.h> +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/uno/Type.h> +#include <com/sun/star/uno/Type.hxx> +#include <com/sun/star/uno/TypeClass.hdl> +#include <com/sun/star/uno/TypeClass.hpp> +#include <com/sun/star/uno/XAggregation.hpp> #include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/XWeak.hpp> #include <com/sun/star/uno/genfunc.h> -#include <com/sun/star/uri/UriReferenceFactory.hpp> -#include <com/sun/star/uri/XVndSunStarExpandUrlReference.hpp> -#include <com/sun/star/util/Date.hpp> -#include <com/sun/star/util/DateTime.hpp> -#include <com/sun/star/util/NumberFormat.hpp> -#include <com/sun/star/util/Time.hpp> -#include <com/sun/star/util/URLTransformer.hpp> -#include <com/sun/star/util/XCloseBroadcaster.hpp> -#include <com/sun/star/util/XCloseable.hpp> -#include <com/sun/star/util/XModifiable.hpp> -#include <com/sun/star/util/XNumberFormatTypes.hpp> -#include <com/sun/star/util/theMacroExpander.hpp> -#include <com/sun/star/xml/crypto/DigestID.hpp> -#include <com/sun/star/xml/crypto/NSSInitializer.hpp> -#include <com/sun/star/xml/crypto/XDigestContext.hpp> -#include <com/sun/star/xml/crypto/XDigestContextSupplier.hpp> -#include <com/sun/star/xml/sax/Parser.hpp> -#include <com/sun/star/xml/sax/Writer.hpp> -#include <com/sun/star/xml/sax/XDocumentHandler.hpp> -#include <config_folders.h> -#include <cppuhelper/compbase3.hxx> -#include <cppuhelper/exc_hlp.hxx> -#include <cppuhelper/factory.hxx> +#include <com/sun/star/uno/genfunc.hxx> +#include <cppu/cppudllapi.h> +#include <cppu/unotype.hxx> +#include <cppuhelper/compbase2.hxx> +#include <cppuhelper/compbase_ex.hxx> +#include <cppuhelper/cppuhelperdllapi.h> #include <cppuhelper/implbase.hxx> -#include <cppuhelper/implementationentry.hxx> +#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase_ex.hxx> +#include <cppuhelper/implbase_ex_post.hxx> +#include <cppuhelper/implbase_ex_pre.hxx> #include <cppuhelper/interfacecontainer.h> #include <cppuhelper/interfacecontainer.hxx> -#include <cppuhelper/queryinterface.hxx> +#include <cppuhelper/propshlp.hxx> +#include <cppuhelper/proptypehlp.h> +#include <cppuhelper/proptypehlp.hxx> #include <cppuhelper/supportsservice.hxx> #include <cppuhelper/typeprovider.hxx> #include <cppuhelper/weak.hxx> #include <cppuhelper/weakagg.hxx> #include <cppuhelper/weakref.hxx> -#include <cstddef> -#include <ctype.h> -#include <deque> -#include <functional> -#include <i18nlangtag/languagetag.hxx> -#include <iterator> -#include <limits> -#include <map> -#include <memory.h> -#include <memory> -#include <osl/conditn.hxx> -#include <osl/diagnose.h> -#include <osl/file.hxx> -#include <osl/mutex.hxx> -#include <osl/thread.h> -#include <osl/time.h> -#include <random> -#include <rtl/digest.h> -#include <rtl/instance.hxx> -#include <rtl/math.hxx> -#include <rtl/random.h> -#include <rtl/strbuf.hxx> -#include <rtl/string.hxx> -#include <rtl/ustrbuf.hxx> -#include <rtl/ustring.hxx> -#include <sal/config.h> -#include <sal/types.h> -#include <set> -#include <stdarg.h> -#include <string.h> -#include <thread> -#include <time.h> +#include <typelib/typeclass.h> #include <typelib/typedescription.h> -#include <typelib/typedescription.hxx> -#include <ucbhelper/content.hxx> -#include <unicode/uchar.h> +#include <typelib/uik.h> +#include <ucbhelper/ucbhelperdllapi.h> +#include <uno/any2.h> #include <uno/data.h> -#include <unordered_map> -#include <utility> -#include <vector> +#include <uno/sequence2.h> +#include <comphelper/PropertyInfoHash.hxx> +#include <comphelper/accessiblecontexthelper.hxx> +#include <comphelper/broadcasthelper.hxx> +#include <comphelper/comphelperdllapi.h> +#include <comphelper/processfactory.hxx> +#include <comphelper/property.hxx> +#include <comphelper/propertycontainerhelper.hxx> +#include <comphelper/seqstream.hxx> +#include <comphelper/sequence.hxx> +#include <comphelper/solarmutex.hxx> +#include <comphelper/types.hxx> +#include <comphelper/uno3.hxx> /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |