diff --git a/AGENTS.md b/AGENTS.md index 6940ace..13621a7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2247,6 +2247,17 @@ Node 22 + npm 10 · Bun 1.3 · Java 21 · Android SDK at `~/Android/Sdk` · `ngi `coco-cashu`), so don't chase those. The 1.9 MB entry is mostly framework + the English dictionary + shared UI; shrinking it means trimming those, not re-adding `manualChunks` (see the TDZ warning above). +- **Repo weight (2026-10-28):** removed 1,295 tracked Gradle build files under + `packages/skatespots-nfc/android/build` (already gitignored; Gradle recreates + them), deleted unused `public/images/sticker-design.png`, recompressed the + large logo/cover/guide assets, and dropped the **threaded** ORT WASM variants + (`ort-wasm-threaded.wasm`, `ort-wasm-simd-threaded.wasm`, + `ort-wasm-threaded.worker.js`). The translation worker sets + `numThreads = 1`, so ORT selects `ort-wasm-simd.wasm` or the non-SIMD + `ort-wasm.wasm`; restore the threaded trio if threads are ever enabled. + Tracked tree is ~47 MB (from ~66 MB); the **.git history still contains old + blobs** — only a history rewrite (`git filter-repo`) would shrink clones, and + that would change every commit hash/tag, so it is deliberately not done. - **Load/relay performance (2026-10-28):** three structural costs were removed. ① `useAuthor` is now **batched** (module queue + one flush per tick): profiles are fetched with **one** main/fallback/community query per 100 authors instead diff --git a/public/ort/ort-wasm-simd-threaded.wasm b/public/ort/ort-wasm-simd-threaded.wasm deleted file mode 100644 index fd14f59..0000000 Binary files a/public/ort/ort-wasm-simd-threaded.wasm and /dev/null differ diff --git a/public/ort/ort-wasm-threaded.wasm b/public/ort/ort-wasm-threaded.wasm deleted file mode 100644 index b29841b..0000000 Binary files a/public/ort/ort-wasm-threaded.wasm and /dev/null differ diff --git a/public/ort/ort-wasm-threaded.worker.js b/public/ort/ort-wasm-threaded.worker.js deleted file mode 100644 index f091ee9..0000000 --- a/public/ort/ort-wasm-threaded.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * ONNX Runtime Web v1.14.0 - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */ -"use strict";var e={},t="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;if(t){var r=require("worker_threads"),a=r.parentPort;a.on("message",(e=>onmessage({data:e})));var o=require("fs");Object.assign(global,{self:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:function(e){(0,eval)(o.readFileSync(e,"utf8"))},postMessage:function(e){a.postMessage(e)},performance:global.performance||{now:function(){return Date.now()}}})}var s=!1,n=[],i=function(){var e=Array.prototype.slice.call(arguments).join(" ");t?o.writeSync(2,e+"\n"):console.error(e)};self.alert=function(){var t=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:t,threadId:e._pthread_self()})},e.instantiateWasm=(t,r)=>{var a=new WebAssembly.Instance(e.wasmModule,t);return r(a),e.wasmModule=null,a.exports},self.onunhandledrejection=e=>{throw e.reason??e},self.onmessage=t=>{try{if("load"===t.data.cmd){if(e.wasmModule=t.data.wasmModule,e.wasmMemory=t.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,"string"==typeof t.data.urlOrBlob)importScripts(t.data.urlOrBlob);else{var r=URL.createObjectURL(t.data.urlOrBlob);importScripts(r),URL.revokeObjectURL(r)}ortWasmThreaded(e).then((function(t){e=t}))}else if("run"===t.data.cmd){e.__performance_now_clock_drift=performance.now()-t.data.time,e.__emscripten_thread_init(t.data.pthread_ptr,0,0,1),e.establishStackSpace(),e.PThread.receiveObjectTransfer(t.data),e.PThread.threadInitTLS(),s||(n.forEach((t=>{e.executeNotifiedProxyingQueue(t)})),n=[],s=!0);try{e.invokeEntryPoint(t.data.start_routine,t.data.arg)}catch(t){if("unwind"!=t){if(!(t instanceof e.ExitStatus))throw t;e.keepRuntimeAlive()||e.__emscripten_thread_exit(t.status)}}}else"cancel"===t.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):"setimmediate"===t.data.target||("processProxyingQueue"===t.data.cmd?s?e.executeNotifiedProxyingQueue(t.data.queue):n.push(t.data.queue):(i("worker.js received unknown command "+t.data.cmd),i(t.data)))}catch(t){throw i("worker.js onmessage() captured an uncaught exception: "+t),t&&t.stack&&i(t.stack),e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),t}};