mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-23 15:41:09 +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
|
PRIVATE
|
||||||
SQLITE_ENABLE_SNAPSHOT=1
|
SQLITE_ENABLE_SNAPSHOT=1
|
||||||
SQLITE_DQS=0
|
SQLITE_DQS=0
|
||||||
# SQLITE_THREADSAFE=0
|
# SQLITE_DEFAULT_PAGE_SIZE=4096
|
||||||
|
SQLITE_DEFAULT_PAGE_SIZE=65536
|
||||||
SQLITE_DEFAULT_MEMSTATUS=0
|
SQLITE_DEFAULT_MEMSTATUS=0
|
||||||
SQLITE_DEFAULT_WAL_SYNCHRONOUS=1
|
SQLITE_DEFAULT_WAL_SYNCHRONOUS=1
|
||||||
SQLITE_LIKE_DOESNT_MATCH_BLOBS
|
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 ProjectFileID = ('A' << 24 | 'U' << 16 | 'D' << 8 | 'Y');
|
||||||
static const int ProjectFileVersion = 1;
|
static const int ProjectFileVersion = 1;
|
||||||
static const int ProjectFilePageSize = 4096;
|
|
||||||
|
|
||||||
|
|
||||||
// Navigation:
|
// Navigation:
|
||||||
//
|
//
|
||||||
@ -45,7 +43,6 @@ static const int ProjectFilePageSize = 4096;
|
|||||||
static const char *ProjectFileSchema =
|
static const char *ProjectFileSchema =
|
||||||
"PRAGMA application_id = %d;"
|
"PRAGMA application_id = %d;"
|
||||||
"PRAGMA user_version = %d;"
|
"PRAGMA user_version = %d;"
|
||||||
"PRAGMA page_size = %d;"
|
|
||||||
"PRAGMA journal_mode = WAL;"
|
"PRAGMA journal_mode = WAL;"
|
||||||
"PRAGMA locking_mode = EXCLUSIVE;"
|
"PRAGMA locking_mode = EXCLUSIVE;"
|
||||||
""
|
""
|
||||||
@ -595,8 +592,7 @@ bool ProjectFileIO::InstallSchema()
|
|||||||
sql,
|
sql,
|
||||||
ProjectFileSchema,
|
ProjectFileSchema,
|
||||||
ProjectFileID,
|
ProjectFileID,
|
||||||
ProjectFileVersion,
|
ProjectFileVersion);
|
||||||
ProjectFilePageSize);
|
|
||||||
|
|
||||||
rc = sqlite3_exec(db, sql, nullptr, nullptr, nullptr);
|
rc = sqlite3_exec(db, sql, nullptr, nullptr, nullptr);
|
||||||
if (rc != SQLITE_OK)
|
if (rc != SQLITE_OK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user