mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
AUP3: Change database blocksize to 64KB
Preliminary tests show it to be a bit faster than the default 4KB. For a simple example, generate 2-hour chirp dropped from 11 seconds to 7 seconds. Not a lot, but...
This commit is contained in:
parent
f3816b30d9
commit
4f129ae0af
@ -20,7 +20,8 @@ list( APPEND DEFINES
|
||||
PRIVATE
|
||||
SQLITE_ENABLE_SNAPSHOT=1
|
||||
SQLITE_DQS=0
|
||||
# SQLITE_THREADSAFE=0
|
||||
# SQLITE_DEFAULT_PAGE_SIZE=4096
|
||||
SQLITE_DEFAULT_PAGE_SIZE=65536
|
||||
SQLITE_DEFAULT_MEMSTATUS=0
|
||||
SQLITE_DEFAULT_WAL_SYNCHRONOUS=1
|
||||
SQLITE_LIKE_DOESNT_MATCH_BLOBS
|
||||
|
@ -31,8 +31,6 @@ wxDEFINE_EVENT(EVT_PROJECT_TITLE_CHANGE, wxCommandEvent);
|
||||
|
||||
static const int ProjectFileID = ('A' << 24 | 'U' << 16 | 'D' << 8 | 'Y');
|
||||
static const int ProjectFileVersion = 1;
|
||||
static const int ProjectFilePageSize = 4096;
|
||||
|
||||
|
||||
// Navigation:
|
||||
//
|
||||
@ -45,7 +43,6 @@ static const int ProjectFilePageSize = 4096;
|
||||
static const char *ProjectFileSchema =
|
||||
"PRAGMA application_id = %d;"
|
||||
"PRAGMA user_version = %d;"
|
||||
"PRAGMA page_size = %d;"
|
||||
"PRAGMA journal_mode = WAL;"
|
||||
"PRAGMA locking_mode = EXCLUSIVE;"
|
||||
""
|
||||
@ -595,8 +592,7 @@ bool ProjectFileIO::InstallSchema()
|
||||
sql,
|
||||
ProjectFileSchema,
|
||||
ProjectFileID,
|
||||
ProjectFileVersion,
|
||||
ProjectFilePageSize);
|
||||
ProjectFileVersion);
|
||||
|
||||
rc = sqlite3_exec(db, sql, nullptr, nullptr, nullptr);
|
||||
if (rc != SQLITE_OK)
|
||||
|
Loading…
x
Reference in New Issue
Block a user