diff --git a/src/hooks/useSyncCache.ts b/src/hooks/useSyncCache.ts index 05c002d..e6a1147 100644 --- a/src/hooks/useSyncCache.ts +++ b/src/hooks/useSyncCache.ts @@ -16,6 +16,13 @@ export default async function() { // unique or don’t insert what is already there or just dump tables first perhaps try { + // speeds up by using memory as much as possible + db.exec(` + PRAGMA synchronous = OFF; + PRAGMA journal_mode = MEMORY; + PRAGMA temp_store = MEMORY; + `); + await db.transaction(async () => { db.exec(` DROP TABLE IF EXISTS provides; diff --git a/src/utils/semver.ts b/src/utils/semver.ts index 31d5ad1..cf0a2a6 100644 --- a/src/utils/semver.ts +++ b/src/utils/semver.ts @@ -1,5 +1,5 @@ //HEY YOU! DO NOT CHANGE THIS TO USE deps.ts since it breaks pkgx/gui and scripts ’n’ shit -import { isArray, isString } from "https://deno.land/x/is_what@v4.1.16/src/index.ts" +import { isArray, isString } from "https://deno.land/x/is_what@v4.1.15/src/index.ts" /** * we have our own implementation because open source is full of weird