Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hi all, after looking at kcachegrind for a while, I found that a
significant amount of our startuptime comes from allocating string
memory and comparing strings 400k times, much of it reading the
configuration files. I just looked at the .xcd files now and of that I
focused on main.xcd because this is likely to be read in on every app
start and is by far the biggest .xcd file.

Here is a breakdown of all xml sections with their LOC count (as
determined by xmllint --format). Each name has a component-data and a
component-scheme section it seems, I have not merged them. Anyway, the 2
biggest contenders are perhaps not even needed there.

File basis3.3/share/registry/main.xcd: total 63014 lines:

The 2 biggest sections are:
"Labels" 14345 + 11 lines (defining label sizes for printing envelope labels)
"TableWizard" 8666 + 26 lines

These make 1/3 of main.xdg, are both needed on startup or can those be
put into a different file that is only read when it is really needed?

Sebastian
------------------------------------------------------------
Breakdown follows:

14345 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Labels" 
oor:package="org.openoffice.Office">
8666 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="TableWizard" oor:package="org.openoffice.Office">
8539 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="VCL" 
oor:package="org.openoffice">
5414 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="GenericCommands" oor:package="org.openoffice.Office.UI">
5305 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="Accelerators" oor:package="org.openoffice.Office">
1854 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="DrawImpressCommands" oor:package="org.openoffice.Office.UI">
1618 <oor:component-schema oor:name="Common" oor:package="org.openoffice.Office" xml:lang="en-US">
1478 <oor:component-schema oor:name="Writer" oor:package="org.openoffice.Office" xml:lang="en-US">
1447 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="WebWizard" oor:package="org.openoffice.Office">
969 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Math" 
oor:package="org.openoffice.Office">
785 <oor:component-data oor:package="org.openoffice.TypeDetection" oor:name="GraphicFilter">
659 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Writer" 
oor:package="org.openoffice.Office">
653 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="DataAccess" oor:package="org.openoffice.Office">
609 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="ChartCommands" oor:package="org.openoffice.Office.UI">
595 <oor:component-data oor:package="org.openoffice.TypeDetection" oor:name="Types">
522 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="DbuCommands" oor:package="org.openoffice.Office.UI">
471 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="Controller" oor:package="org.openoffice.Office.UI">
448 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Security" 
oor:package="org.openoffice.Office">
389 <oor:component-schema oor:name="Calc" oor:package="org.openoffice.Office" xml:lang="en-US">
372 <oor:component-schema oor:name="Impress" oor:package="org.openoffice.Office" xml:lang="en-US">
323 <oor:component-schema oor:name="DataAccess" oor:package="org.openoffice.Office" 
xml:lang="en-US">
320 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Setup" 
oor:package="org.openoffice">
316 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Inet" 
oor:package="org.openoffice">
274 <oor:component-schema oor:name="Draw" oor:package="org.openoffice.Office" xml:lang="en-US">
245 <oor:component-schema oor:name="WriterWeb" oor:package="org.openoffice.Office" xml:lang="en-US">
238 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="Accelerators" oor:package="org.openoffice.Office">
230 <oor:component-data oor:name="Drivers" oor:package="org.openoffice.Office.DataAccess">
227 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="UI" 
oor:package="org.openoffice.Office">
216 <oor:component-schema oor:name="UI" oor:package="org.openoffice.Office" xml:lang="en-US">
194 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Calc" 
oor:package="org.openoffice.Office">
191 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="StartModuleCommands" oor:package="org.openoffice.Office.UI">
186 <oor:component-schema oor:name="Math" oor:package="org.openoffice.Office" xml:lang="en-US">
186 <oor:component-data oor:name="Drivers" oor:package="org.openoffice.Office.DataAccess">
176 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="Configuration" oor:package="org.openoffice.ucb">
168 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Paths" 
oor:package="org.openoffice.Office">
163 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Common" 
oor:package="org.openoffice.Office">
159 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:package="org.openoffice.Office" oor:name="Embedding">
147 <oor:component-data oor:name="Drivers" oor:package="org.openoffice.Office.DataAccess">
146 <oor:component-schema oor:name="Linguistic" oor:package="org.openoffice.Office" 
xml:lang="en-US">
135 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="GenericCategories" oor:package="org.openoffice.Office.UI">
132 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Impress" 
oor:package="org.openoffice.Office">
124 <oor:component-schema oor:name="Setup" oor:package="org.openoffice" xml:lang="en-US">
122 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="ChartWindowState" oor:package="org.openoffice.Office.UI">
119 <oor:component-schema oor:name="WebWizard" oor:package="org.openoffice.Office" xml:lang="en-US">
115 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="FormWizard" oor:package="org.openoffice.Office">
102 <oor:component-data oor:name="Drivers" oor:package="org.openoffice.Office.DataAccess">
101 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="BasicIDEWindowState" oor:package="org.openoffice.Office.UI">
91 <oor:component-data oor:package="org.openoffice.TypeDetection" oor:name="Types">
90 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="BaseWindowState" oor:package="org.openoffice.Office.UI">
82 <oor:component-data oor:name="Drivers" oor:package="org.openoffice.Office.DataAccess">
75 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Factories" 
oor:package="org.openoffice.Office.UI">
73 <oor:component-schema oor:name="Java" oor:package="org.openoffice.Office" xml:lang="en-US">
72 <oor:component-data oor:name="Drivers" oor:package="org.openoffice.Office.DataAccess">
70 <oor:component-schema oor:name="Addons" oor:package="org.openoffice.Office" xml:lang="en-US">
68 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Canvas" 
oor:package="org.openoffice.Office">
59 <oor:component-schema oor:name="UserProfile" oor:package="org.openoffice" xml:lang="en-US">
56 <oor:component-schema oor:name="Inet" oor:package="org.openoffice" xml:lang="en-US">
56 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="DbQueryWindowState" oor:package="org.openoffice.Office.UI">
53 <oor:component-schema oor:name="OptionsDialog" oor:package="org.openoffice.Office" 
xml:lang="en-US">
51 <oor:component-schema oor:name="Recovery" oor:package="org.openoffice.Office" xml:lang="en-US">
50 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="BibliographyCommands" oor:package="org.openoffice.Office.UI">
50 <oor:component-data oor:name="Drivers" oor:package="org.openoffice.Office.DataAccess">
49 <oor:component-data oor:package="org.openoffice.TypeDetection" oor:name="Types">
47 <oor:component-schema oor:name="Compatibility" oor:package="org.openoffice.Office" 
xml:lang="en-US">
47 <oor:component-data oor:package="org.openoffice.TypeDetection" oor:name="Filter">
44 <oor:component-schema oor:name="WindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
43 <oor:component-schema oor:name="Settings" oor:package="org.openoffice.Office.OOoImprovement" 
xml:lang="en-US">
43 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="ProtocolHandler" oor:package="org.openoffice.Office">
41 <oor:component-schema oor:name="TypeDetection" oor:package="org.openoffice.Office" 
xml:lang="en-US">
36 <oor:component-schema oor:name="Types" oor:package="org.openoffice.TypeDetection" 
xml:lang="en-US">
34 <oor:component-schema oor:name="Logging" oor:package="org.openoffice.Office" xml:lang="en-US">
33 <oor:component-schema oor:name="Filter" oor:package="org.openoffice.TypeDetection" 
xml:lang="en-US">
31 <oor:component-schema oor:name="Canvas" oor:package="org.openoffice.Office" xml:lang="en-US">
27 <oor:component-schema oor:name="Views" oor:package="org.openoffice.Office" xml:lang="en-US">
27 <oor:component-schema oor:name="Embedding" oor:package="org.openoffice.Office" xml:lang="en-US">
27 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:package="org.openoffice.Office" oor:name="Embedding">
27 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Inet" 
oor:package="org.openoffice">
26 <oor:component-schema oor:name="TableWizard" oor:package="org.openoffice.Office" 
xml:lang="en-US">
26 <oor:component-data oor:package="org.openoffice.TypeDetection" oor:name="Filter">
25 <oor:component-schema oor:name="Misc" oor:package="org.openoffice.TypeDetection" 
xml:lang="en-US">
25 <oor:component-schema oor:name="ExtendedColorScheme" oor:package="org.openoffice.Office" 
xml:lang="en-US">
25 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="Interaction" oor:package="org.openoffice">
25 <oor:component-data oor:package="org.openoffice.TypeDetection" oor:name="Misc">
24 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Setup" 
oor:package="org.openoffice">
22 <oor:component-schema oor:name="Jobs" oor:package="org.openoffice.Office" xml:lang="en-US">
22 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="DbTableWindowState" oor:package="org.openoffice.Office.UI">
22 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="DbTableDataWindowState" oor:package="org.openoffice.Office.UI">
22 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="DbRelationWindowState" oor:package="org.openoffice.Office.UI">
22 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="DbBrowserWindowState" oor:package="org.openoffice.Office.UI">
21 <oor:component-schema oor:name="CalcAddIns" oor:package="org.openoffice.Office" xml:lang="en-US">
20 <oor:component-schema oor:name="VCL" oor:package="org.openoffice" xml:lang="en-US">
20 <oor:component-schema oor:name="Scripting" oor:package="org.openoffice.Office" xml:lang="en-US">
20 <oor:component-schema oor:name="Paths" oor:package="org.openoffice.Office" xml:lang="en-US">
20 <oor:component-schema oor:name="LDAP" oor:package="org.openoffice" xml:lang="en-US">
20 <oor:component-schema oor:name="Drivers" oor:package="org.openoffice.Office.DataAccess" 
xml:lang="en-US">
20 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Common" 
oor:package="org.openoffice.Office">
18 <oor:component-schema oor:package="org.openoffice.Office" oor:name="Histories" xml:lang="en-US">
18 <oor:component-schema oor:name="Controller" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
18 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="UISort" 
oor:package="org.openoffice.TypeDetection">
17 <oor:component-schema oor:name="Substitution" oor:package="org.openoffice.Office" 
xml:lang="en-US">
17 <oor:component-schema oor:name="Configuration" oor:package="org.openoffice.ucb" xml:lang="en-US">
17 <oor:component-schema oor:name="Accelerators" oor:package="org.openoffice.Office" 
xml:lang="en-US">
16 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="StartModuleWindowState" oor:package="org.openoffice.Office.UI">
16 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Common" 
oor:package="org.openoffice.Office">
15 <oor:component-schema oor:name="Store" oor:package="org.openoffice.ucb" xml:lang="en-US">
15 <oor:component-schema oor:name="FirstStartWizard" oor:package="org.openoffice" xml:lang="en-US">
14 <oor:component-schema oor:name="WindowContentFactories" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
14 <oor:component-schema oor:name="System" oor:package="org.openoffice" xml:lang="en-US">
14 <oor:component-schema oor:name="GraphicFilter" oor:package="org.openoffice.TypeDetection" 
xml:lang="en-US">
14 <oor:component-schema oor:name="Factories" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
13 <oor:component-schema oor:name="Interaction" oor:package="org.openoffice" xml:lang="en-US">
13 <oor:component-schema oor:name="GlobalSettings" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
13 <oor:component-schema oor:name="FormWizard" oor:package="org.openoffice.Office" xml:lang="en-US">
13 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Scripting" 
oor:package="org.openoffice.Office">
12 <oor:component-schema oor:name="Security" oor:package="org.openoffice.Office" xml:lang="en-US">
12 <oor:component-schema oor:name="Hierarchy" oor:package="org.openoffice.ucb" xml:lang="en-US">
12 <oor:component-data oor:package="org.openoffice" oor:name="System">
11 <oor:component-schema oor:name="UISort" oor:package="org.openoffice.TypeDetection" 
xml:lang="en-US">
11 <oor:component-schema oor:name="Labels" oor:package="org.openoffice.Office" xml:lang="en-US">
11 <oor:component-schema oor:name="Events" oor:package="org.openoffice.Office" xml:lang="en-US">
11 <oor:component-schema oor:name="Commands" oor:package="org.openoffice.Office" xml:lang="en-US">
11 <oor:component-schema oor:name="Commands" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
11 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="FirstStartWizard" oor:package="org.openoffice">
9 <oor:component-schema oor:name="ProtocolHandler" oor:package="org.openoffice.Office" 
xml:lang="en-US">
9 <oor:component-schema oor:name="InteractionHandler" oor:package="org.openoffice.ucb" 
xml:lang="en-US">
8 <oor:component-schema oor:name="StartModuleCommands" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
8 <oor:component-schema oor:name="SFX" oor:package="org.openoffice.Office" xml:lang="en-US">
8 <oor:component-schema oor:name="GenericCommands" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
8 <oor:component-schema oor:name="ExtensionManager" oor:package="org.openoffice.Office" 
xml:lang="en-US">
8 <oor:component-schema oor:name="DrawImpressCommands" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
8 <oor:component-schema oor:name="DbuCommands" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
8 <oor:component-schema oor:name="Chart" oor:package="org.openoffice.Office" xml:lang="en-US">
8 <oor:component-schema oor:name="ChartCommands" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
8 <oor:component-schema oor:name="BibliographyCommands" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
8 <oor:component-schema oor:name="BasicIDECommands" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
8 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Views" 
oor:package="org.openoffice.Office">
8 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="VCL" 
oor:package="org.openoffice">
8 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="UISort" 
oor:package="org.openoffice.TypeDetection">
8 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="UISort" 
oor:package="org.openoffice.TypeDetection">
8 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="UISort" 
oor:package="org.openoffice.TypeDetection">
8 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="UISort" 
oor:package="org.openoffice.TypeDetection">
8 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Paths" 
oor:package="org.openoffice.Office">
8 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Paths" 
oor:package="org.openoffice.Office">
8 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Jobs" 
oor:package="org.openoffice.Office">
8 <oor:component-data oor:package="org.openoffice.TypeDetection" oor:name="Misc">
7 <oor:component-schema oor:package="org.openoffice.Office" oor:name="TabBrowse" xml:lang="en-US">
7 <oor:component-schema oor:name="StartModuleWindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
7 <oor:component-schema oor:name="GenericCategories" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
7 <oor:component-schema oor:name="DbTableWindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
7 <oor:component-schema oor:name="DbTableDataWindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
7 <oor:component-schema oor:name="DbRelationWindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
7 <oor:component-schema oor:name="DbQueryWindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
7 <oor:component-schema oor:name="DbBrowserWindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
7 <oor:component-schema oor:name="ChartWindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
7 <oor:component-schema oor:name="Category" oor:package="org.openoffice.Office.UI" xml:lang="en-US">
7 <oor:component-schema oor:name="BibliographyWindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
7 <oor:component-schema oor:name="BasicIDEWindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
7 <oor:component-schema oor:name="BaseWindowState" oor:package="org.openoffice.Office.UI" 
xml:lang="en-US">
6 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="SFX" 
oor:package="org.openoffice.Office">
6 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Paths" 
oor:package="org.openoffice.Office">
6 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Histories" 
oor:package="org.openoffice.Office">
6 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="ExtensionManager" oor:package="org.openoffice.Office">
2 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="UserProfile" oor:package="org.openoffice">
0 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="UISort" 
oor:package="org.openoffice.TypeDetection"/>
0 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Logging" 
oor:package="org.openoffice.Office"/>
0 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; oor:name="Common" 
oor:package="org.openoffice.Office"/>
0 <oor:component-data xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="BasicIDECommands" oor:package="org.openoffice.Office.UI"/>

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.