[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Fri Oct 7 20:13:01 CEST 2005
SVN commit 468329 by staikos:
5.75% improvement in startup time by delaying parsing the plugin XML
M +4 -0 kst.cpp
M +0 -4 main.cpp
--- trunk/extragear/graphics/kst/kst/kst.cpp #468328:468329
@@ -86,6 +86,7 @@
#include "kstviewfitsdialog_i.h"
#include "kstviewwindow.h"
#include "plotmimesource.h"
+#include "plugincollection.h"
#include "pluginmanager.h"
#include "psversion.h"
#include "statuslabel.h"
@@ -278,6 +279,9 @@
void KstApp::loadExtensions() {
+ // Initialise the plugin loader and collection first.
+ PluginCollection::self();
+
ExtensionMgr *mgr = ExtensionMgr::self();
mgr->setWindow(this);
KService::List sl = KServiceType::offers("Kst Extension");
--- trunk/extragear/graphics/kst/kst/main.cpp #468328:468329
@@ -40,7 +40,6 @@
#include "kstvcurve.h"
#include "kstrmatrix.h"
#include "kstimage.h"
-#include "plugincollection.h"
static const char description[] = I18N_NOOP("Kst: a data viewing program.");
@@ -401,9 +400,6 @@
print_and_exit = true;
}
- // Initialise the plugin loader and collection.
- PluginCollection::self();
-
if (!print_and_exit) {
app.setMainWidget(kst);
kst->show();
More information about the Kst
mailing list