initialization of libraries concurrently (faster start-up)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7510 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 24909b3006
commit 4bd65532da

@ -186,7 +186,7 @@ public final class Switchboard extends serverSwitch {
// storage management // storage management
public File htCachePath; public File htCachePath;
public File dictionariesPath; public final File dictionariesPath;
public File listsPath; public File listsPath;
public File htDocsPath; public File htDocsPath;
public File workPath; public File workPath;
@ -294,7 +294,11 @@ public final class Switchboard extends serverSwitch {
// init libraries // init libraries
this.log.logConfig("initializing libraries"); this.log.logConfig("initializing libraries");
LibraryProvider.initialize(this.dictionariesPath); new Thread() {
public void run() {
LibraryProvider.initialize(dictionariesPath);
}
}.start();
// set a high maximum cache size to current size; this is adopted later automatically // set a high maximum cache size to current size; this is adopted later automatically
final int wordCacheMaxCount = (int) getConfigLong(SwitchboardConstants.WORDCACHE_MAX_COUNT, 20000); final int wordCacheMaxCount = (int) getConfigLong(SwitchboardConstants.WORDCACHE_MAX_COUNT, 20000);

Loading…
Cancel
Save