perf testing bug 431758 (a=mconnor)

git-svn-id: svn://10.0.0.236/trunk@251207 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dietrich%mozilla.com 2008-05-05 18:11:49 +00:00
parent 8fc5693af7
commit fe0deac70b
2 changed files with 9 additions and 0 deletions

View File

@ -636,6 +636,12 @@ nsNavHistory::InitDB(PRInt16 *aMadeChanges)
rv = mDBConn->ExecuteSimpleSQL(pageSizePragma);
NS_ENSURE_SUCCESS(rv, rv);
#ifdef IN_MEMORY_SQLITE_TEMP_STORE
rv = mDBConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
"PRAGMA temp_store = MEMORY"));
NS_ENSURE_SUCCESS(rv, rv);
#endif
mozStorageTransaction transaction(mDBConn, PR_FALSE);
// Initialize the other places services' database tables. We do this before

View File

@ -91,6 +91,9 @@
// set to use more optimized (in-memory database) link coloring
//#define IN_MEMORY_LINKS
// define to maintain sqlite temporary tables in memory rather than on disk
#define IN_MEMORY_SQLITE_TEMP_STORE
// define to enable lazy link adding
#define LAZY_ADD