From 13d465c1c45e649a702457d67476694aeb553704 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 27 Sep 2023 16:16:10 -0500 Subject: Get rid of crc32, truncate instead Signed-off-by: Matt Strapp --- app/src/lib/ts/crc32.worker.ts | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 app/src/lib/ts/crc32.worker.ts (limited to 'app/src/lib/ts/crc32.worker.ts') 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) => { - const file = message.data; - const buffer = await file.arrayBuffer(); - const crc = crc32(buffer); - postMessage(crc); -}; -- cgit v1.2.3