Files
Tunglies 8265c982f0 perf: reduce redundant clones and allocations (#16091)
* perf: reduce redundant clones and allocations

- tray: Arc::unwrap_or_clone for icon updates, skip 4MiB RGBA clone when uniquely owned
- asset protocol: keep decoded path as Cow, build SafePathBuf once, borrow Range header, write multi-range bodies directly into the response buffer
- menu builders: move MenuId into the main-thread closure instead of cloning
- tauri-utils: AssetKey::from borrows rooted paths via Cow

Signed-off-by: Tunglies <77394545+Tunglies@users.noreply.github.com>

* fix clippy

* fix fmt while rebase

---------

Signed-off-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
2026-09-23 13:25:39 +08:00
..