From 4c20f7544d40caf15cc5882244689a9c7414289c Mon Sep 17 00:00:00 2001 From: Rizumu Ayaka Date: Thu, 10 Oct 2024 23:43:00 +0800 Subject: [PATCH] perf: use web worker to decode (#12) --- app/components/Scan.vue | 36 +++++++++++++++-------- app/composables/decode-worker.ts | 49 +++++++++++++++++++++++++++++++ app/composables/workers/decode.ts | 49 +++++++++++++++++++++++++++++++ cspell.config.yaml | 1 + package.json | 1 + pnpm-lock.yaml | 13 ++++---- 6 files changed, 132 insertions(+), 17 deletions(-) create mode 100644 app/composables/decode-worker.ts create mode 100644 app/composables/workers/decode.ts diff --git a/app/components/Scan.vue b/app/components/Scan.vue index ad1e333..95986c2 100644 --- a/app/components/Scan.vue +++ b/app/components/Scan.vue @@ -1,8 +1,9 @@