You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cold-Start & Memory Optimizations (No Model Pruning)
Binary tokenizer snapshot (tokenizer.glossbin): Parses tokenizer.json once and persists a compact binary snapshot on first load, cutting subsequent host-JVM tokenizer loads from 281 ms to 56 ms (~5.0× faster).
Measured ONNX Runtime session tuning: Passes file paths directly for OS mmap, disables CPU arena pre-allocation, memory pattern optimization, and weight prepacking, uses NO_OPT, and sets 2 intra-op threads—cutting host-JVM cold encoder + decoder session load time from 644 ms to 78 ms (~8.3× faster) (276 ms end-to-end warm-cache load in NllbEngineIntegrationTest).
Lifecycle-aware loading & 90s idle eviction: Replaces heavy work in GlossApplication.onCreate() with a fast disk check (ModelState.IdleDownloaded), starts async warm-up in MainActivity.onStart(), evicts native encoder/decoder sessions after 90 seconds in the background (keeping the tokenizer warm and seamlessly reloading on demand), and releases memory on system onTrimMemory.
Cold-start telemetry: Displays Last cold start timing inside the App & Offline Model sheet.
In-Place Update Ready
Signed with the persistent Gloss release keystore (versionCode = 6, versionName = 2.4.0). Existing v2.3.0 installs will detect this release in the App & Offline Model sheet and update cleanly in-place.