Root cause: the worker job queue was FIFO (mpsc). Scrolling down filled it with slow cold decodes of far cells; scrolling back up re-submitted the top cells as fast disk-cache hits that then waited behind the whole backlog — seconds of shimmer. Deterministic repro measured 6.3 s behind a 180-cold backlog (emulator UI showed the same while 220 cold jobs waited 0.5-0.9 s). Fix: job queue is now Mutex<VecDeque> + Condvar; Engine::submit prepends each new batch so the most-recent intent (the viewport, or what you scrolled back to) is decoded before stale far-away prefetch. Cold backlog keeps warming the disk cache in the background (total work unchanged). - regression: thumb::tests::scroll_back_cache_hit_not_starved (6.3 s -> 130 ms) - dispatcher exits via a closed flag set in Engine::drop (replaces the mpsc channel-close shutdown) - HANDOFF: M3 fix note, prepend rationale, emulator realtest_extra dataset |
||
|---|---|---|
| scripts | ||
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| HANDOFF.md | ||
| LICENSE | ||
| README.md | ||
gallery
A high-performance image gallery for Android (primary), Linux and macOS — Rust + Slint 1.18.
Status: M1 (metadata scan + DB) done. See HANDOFF.md — the development hand-off with the full plan: architecture, thumbnail pipeline, milestones M1–M7, Slint gotchas, permission flow, and performance targets. Next: M2 (thumbnail engine).
Build
./scripts/build.sh debug # debug x86_64 APK + install on emulator
./scripts/build.sh # release x86_64 (emulator)
./scripts/build.sh aarch64 # release aarch64 (device)
cargo run # desktop (Linux needs libfontconfig1 + pkg-config)
Requires: Rust (rustup), cargo-apk2, Android SDK + NDK 27 (see HANDOFF.md §3
for exact paths/env).
License
GPL-3.0 (see LICENSE). Built on Slint, used under the Slint royalty-free license for proprietary apps (see HANDOFF.md §10.4).