Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Switch synchronous to off and journal_more to memory during pkg repo, this speed it up a bit
Baptiste Daroussin committed 14 years ago
commit 33108b84cb70641e26556cde751a8eb175f162eb
parent ff5af64
1 file changed +6 -0
modified libpkg/pkg_repo.c
@@ -345,6 +345,12 @@ pkg_create_repo(char *path, void (progress)(struct pkg *pkg, void *data), void *
		return (EPKG_FATAL);
	}
	
+
	if ((retcode = sql_exec(sqlite, "PRAGMA synchronous=off;")) != EPKG_OK)
+
		goto cleanup;
+

+
	if ((retcode = sql_exec(sqlite, "PRAGMA journal_mode=memory")) != EPKG_OK)
+
		goto cleanup;
+

	if ((retcode = sql_exec(sqlite, initsql)) != EPKG_OK)
		goto cleanup;