From 74c2859cc3ea85e2b703ce96e82c4606eb737fda Mon Sep 17 00:00:00 2001 From: Doug Schaefer Date: Thu, 3 May 2007 14:06:28 +0000 Subject: [PATCH] Bug 184892 - Change chunk size back to 4K. --- .../parser/org/eclipse/cdt/internal/core/pdom/PDOM.java | 3 ++- .../parser/org/eclipse/cdt/internal/core/pdom/db/Database.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java index d8740588fb3..b8235c594dc 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java @@ -75,7 +75,7 @@ import org.eclipse.core.runtime.Status; public class PDOM extends PlatformObject implements IIndexFragment, IPDOM { protected Database db; - public static final int VERSION = 34; + public static final int VERSION = 36; // 0 - the beginning of it all // 1 - first change to kick off upgrades // 2 - added file inclusions @@ -112,6 +112,7 @@ public class PDOM extends PlatformObject implements IIndexFragment, IPDOM { // 33 - templates: constructor instances // 34 - fix for base classes represented by qualified names (183843) // 35 - add scanner configuration hashcode (62366) + // 36 - changed chunk size back to 4K (184892) public static final int LINKAGES = Database.DATA_AREA; public static final int FILE_INDEX = Database.DATA_AREA + 4; diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/Database.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/Database.java index ec4faa30d82..1e93f32588e 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/Database.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/Database.java @@ -72,7 +72,7 @@ public class Database { // public for tests only, you shouldn't need these public static final int VERSION_OFFSET = 0; - public static final int CHUNK_SIZE = 1024 * 16; + public static final int CHUNK_SIZE = 1024 * 4; public static final int MIN_SIZE = 16; public static final int INT_SIZE = 4; public static final int CHAR_SIZE = 2;