All Articles/Engineering
Engineering

Building a High-Performance Native Desktop Tracker in Rust & Electron

An architectural deep-dive into how we built a cross-platform desktop application with under 45MB RAM footprint, SQLite offline caching, and instant cloud sync.

M
Marcus Vance
Principal Desktop Engineer•8 min read•Sep 17, 2026
Building a High-Performance Native Desktop Tracker in Rust & Electron

Why We Re-Engineered the Collabix Desktop Application

Time tracking software has a notorious reputation for sluggish performance, high memory consumption, and battery drain. When we set out to build **Collabix Desktop v2.4**, our mission was clear:

*Build a desktop companion so lightweight that engineers and designers forget it is even running.*

The Architecture: Rust Native Core + Electron Shell

Instead of running heavy JavaScript timers and file I/O on the main renderer thread, we offloaded all critical performance workloads to a native Rust dynamic library:

  • **Idle Detection**: Sub-millisecond OS event hook monitoring keyboard/mouse inactivity with zero CPU wakeups.
  • **SQLite Offline Queue**: Every screenshot thumbnail, time tick, and active task state is persisted in an encrypted local SQLite WAL database.
  • **Background Sync Engine**: When internet connectivity resumes, changes are batched and streamed via WebSockets with automatic conflict resolution.

  • Key Performance Benchmarks

    | Metric | Legacy Tracker | Collabix v2.4 (Rust Core) |

    | :--- | :--- | :--- |

    | **Idle RAM Footprint** | 220 MB | **38 MB** |

    | **Active Tracking CPU** | 4.2% | **0.1%** |

    | **Launch to Tracking** | 3.4s | **0.3s** |

    | **Battery Drain (8h)** | ~14% | **< 1.5%** |


    Universal Menu Bar & System Tray Experience

    With global shortcut support (`⌥ + Space` on macOS, `Alt + Space` on Windows), users can start, pause, and switch deliverables in less than 2 seconds without switching out of their IDE or design tools.

    Tags:#Rust#Electron#SQLite#Performance#Mac & Win
    M
    Marcus Vance
    Principal Desktop Engineer

    Writing about agency engineering velocity, autonomous AI workflows, and time tracking optimization at Collabix.