Anarlog

Rebuilding Anarlog in GPUI

John Jeong·

Anarlog 2.0 replaces Tauri and system WebViews with a single-process Rust UI built on GPUI (apps/desktop-gpui), keeping local SQLite as storage (Markdown is export only). Here is how shipping 1.4.35 compares against GPUI across fresh macOS, Linux, and Windows VMs plus the signed 1.4.36 vs 2.0.0 Apple Silicon production build.

Cold launch (5,000-note list)Lower is better (ms)
1.4.35 Tauri2.0 GPUI
macOS-94.4% (17.7x)
1.4.35 Tauri: 4,404.8 ms
2.0 GPUI: 248.7 ms
Linux-91.4% (11.6x)
1.4.35 Tauri: 4,404.7 ms
2.0 GPUI: 379.2 ms
Windows-91.3% (11.4x)
1.4.35 Tauri: 5,129.6 ms
2.0 GPUI: 448.6 ms

Cold launch CPU: macOS 11.14s -> 0.34s (-97.0%), Linux 11.11s -> 0.48s (-95.7%), Windows 17.44s -> 0.52s (-97.0%).

Idle memory (10 min window visible)phys_footprint / PSS / Private WS (MiB)
1.4.35 Tauri2.0 GPUI
macOS-94.7% (18.9x)
1.4.35 Tauri: 985.1 MiB
2.0 GPUI: 52.2 MiB
Linux-86.0% (7.1x)
1.4.35 Tauri: 1,794.3 MiB
2.0 GPUI: 251.5 MiB
Windows-96.3% (26.6x)
1.4.35 Tauri: 412.6 MiB
2.0 GPUI: 15.5 MiB

Closed to tray (10 min): Windows dropped 406.2 -> 10.0 MiB (40.6x less, 8 WebView2 processes -> 1), macOS 961.3 -> 55.4 MiB, Linux 1,548.0 -> 251.0 MiB.

Idle CPU (10 min window visible)Total CPU seconds (s)
1.4.35 Tauri2.0 GPUI
macOS-65.6%
1.4.35 Tauri: 16.684 s
2.0 GPUI: 5.746 s
Linux-72.3%
1.4.35 Tauri: 16.439 s
2.0 GPUI: 4.548 s
Windows-97.8%
1.4.35 Tauri: 38.750 s
2.0 GPUI: 0.844 s

macOS 1.4.35 baseline reflects n=4 settled runs (n=5 lower bound 16.201s, <= -64.5%). Closed to tray CPU: macOS -67.6%, Linux -80.1%, Windows 38.875s -> 0.516s (-98.7%).

Search across 5,000 notes50 matches (ms)
1.4.35 Tauri2.0 GPUI
macOS-61.9% (2.6x)
1.4.35 Tauri: 93.5 ms
2.0 GPUI: 35.7 ms
Linux-83.0% (5.9x)
1.4.35 Tauri: 3,128.4 ms
2.0 GPUI: 533.0 ms
Windows-97.9% (47.6x)
1.4.35 Tauri: 3,817.7 ms
2.0 GPUI: 80.2 ms

macOS and Linux measure last key to visible results; Windows measures typing onset to visible results.

Memory numbers compare 1.4.35 against GPUI within each OS (phys_footprint, cgroup PSS, and Private Working Set are not comparable across OSes).

Editor, resize, and production bundle

Note switchingMedian open latency (ms)
1.4.35 Tauri2.0 GPUI
macOS (100x)-92.3% (13.0x)
1.4.35 Tauri: 911.1 ms
2.0 GPUI: 70.1 ms
Linux (20x)-71.1% (3.5x)
1.4.35 Tauri: 509.2 ms
2.0 GPUI: 147.4 ms
Windows (100x)-79.3% (4.8x)
1.4.35 Tauri: 1,209.8 ms
2.0 GPUI: 250.3 ms
20,000-word note openEnd/open latency (ms)
1.4.35 Tauri2.0 GPUI
macOS-61.0%
1.4.35 Tauri: 1,505.7 ms
2.0 GPUI: 587.3 ms
Linux-91.9%
1.4.35 Tauri: 2,240.0 ms
2.0 GPUI: 180.4 ms
Windows-90.4%
1.4.35 Tauri: 3,026.2 ms
2.0 GPUI: 290.8 ms

500-char typing CPU drops: macOS -70.0% to -75.6% (<=80.1 MiB), Linux -35.8% to -36.5% (270 vs 4,028-4,033 MiB), Windows -74.0% to -78.2% (<=37.7 vs 1,732.5 MiB).

Continuous 5s window resize CPUIncl. software-GPU caveat (s)
1.4.35 Tauri2.0 GPUI
macOS (Metal)-83.2%
1.4.35 Tauri: 9.704 s
2.0 GPUI: 1.630 s
Linux (lavapipe)+48.1% CPU
1.4.35 Tauri: 6.648 s
2.0 GPUI: 9.844 s
Windows (WARP)-90.2%
1.4.35 Tauri: 12.562 s
2.0 GPUI: 1.234 s

On the headless Linux KVM guest, software Vulkan (Mesa llvmpipe/lavapipe) spent 86.1% of samples rasterizing resize frames, while memory still fell -84.9% (1,709.7 -> 258.7 MiB).

Signed Apple Silicon bundleApple M5 Max, macOS 27.0.1 (MiB)
1.4.36 Tauri2.0.0 GPUI
Signed .dmg-16.5%
1.4.36 Tauri: 203.9 MiB
2.0.0 GPUI: 170.2 MiB
Unpacked .app-13.4%
1.4.36 Tauri: 478.7 MiB
2.0.0 GPUI: 414.6 MiB
Main binary-19.1%
1.4.36 Tauri: 335.5 MiB
2.0.0 GPUI: 271.4 MiB

Main executable links 70 vs 76 dylibs (WebKit/JavaScriptCore removed). Isolated 2.0.0 runtime: 256.5 ms median first paint (5 launches incl. cold), 62.0 MiB footprint, 1 process.

What the harness caught

  • GPUI wheel-scroll stalls: Early candidates took 101.37 s across 1,014 Windows wheel events (vs 9.28 s on 1.4.35, where WebView2 skipped 70.14% of frames as blank bands) and hit an ~18 s macOS CAMetalDisplayLink stall. Fixed before 2.0.0 in PR #8236 (Windows down to 14.9 s) and PR #8242.
  • Tauri 1.4.35 save-on-quit race: 0/5 full 500-char Linux edits survived process quit in 1.4.35 (vs 5/5 in GPUI) because exit beat the debounced SQLite flush. Fixed in PR #8238 and shipped in 1.4.36.
  • Headless Linux software-Vulkan resize: Continuous resizing under Mesa lavapipe added +48.1% CPU (chart above) while still cutting memory -84.9%.

Fixture and scope

Fixture: 5,000 notes (2,500 summaries, 1 20,000-word stress note), signed out, sync off, Light theme, 1280x800 window on a macOS 26.6.2 VM (12c M4 Pro Virtual), Ubuntu 22.04/24.04 KVM (8c Xeon), and Windows Server 2022 (8c Xeon). Live audio capture, STT, local LLM inference, and CloudSync add their own budgets when active.

apps/desktop-gpui and Anarlog's community packages are MIT-licensed on github.com/fastrepl/anarlog (download Anarlog).