aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/lib/ts/crc32.worker.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/lib/ts/crc32.worker.ts')
-rw-r--r--app/src/lib/ts/crc32.worker.ts10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/src/lib/ts/crc32.worker.ts b/app/src/lib/ts/crc32.worker.ts
deleted file mode 100644
index 57c1bc9..0000000
--- a/app/src/lib/ts/crc32.worker.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-// TODO: Think about using a WebAssembly implementation of CRC32 instead of JavaScript.
-// WHY? The JavaScript implementation is not very extensible and is not very fast.
-import crc32 from 'crc/crc32';
-
-onmessage = async (message: MessageEvent<File>) => {
- const file = message.data;
- const buffer = await file.arrayBuffer();
- const crc = crc32(buffer);
- postMessage(crc);
-};