summaryrefslogtreecommitdiff
path: root/meta-openvuplus/recipes-connectivity/minidlna/minidlna/default_sqlite_caches.diff
blob: 91a84f938111197b70dad2e2ca4f759207498021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#Don't increase page_size and default_cache_size.
#This patch reduces the memory footprint by about 50% without any major performance hits.
diff --git a/minidlna.c b/minidlna.c
index be34fe3..45490a1 100644
--- a/minidlna.c
+++ b/minidlna.c
@@ -295,10 +295,8 @@ open_db(sqlite3 **sq3)
	if (sq3)
		*sq3 = db;
 	sqlite3_busy_timeout(db, 5000);
-	sql_exec(db, "pragma page_size = 4096");
 	sql_exec(db, "pragma journal_mode = OFF");
 	sql_exec(db, "pragma synchronous = OFF;");
-	sql_exec(db, "pragma default_cache_size = 8192;");

 	return new_db;
 }