From a79cfba6dc31104fd07c185745127de214e4403a Mon Sep 17 00:00:00 2001 From: Luke Parker <10430890+Hona@users.noreply.github.com> Date: Sun, 6 Dec 2026 22:37:01 +1000 Subject: [PATCH 1/2] perf(deps,memory): pin rune e5ec031ca (active cache trim #4022) and tune tab hibernation --- Cargo.lock | 178 +++++++++++++----------- Cargo.toml | 42 +++--- apps/desktop/src/shell/tab_hibernate.rs | 32 +++-- 3 files changed, 134 insertions(+), 118 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5cd81cb6a..8e14d245b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -26,7 +26,7 @@ dependencies = [ [[package]] name = "accesskit_atspi_common" version = "0.21.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "accesskit", "accesskit_consumer", @@ -49,7 +49,7 @@ dependencies = [ [[package]] name = "accesskit_macos" version = "0.27.2" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "accesskit", "accesskit_consumer", @@ -80,7 +80,7 @@ dependencies = [ [[package]] name = "accesskit_windows" version = "0.35.2" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "accesskit", "accesskit_consumer", @@ -1408,7 +1408,7 @@ dependencies = [ "objc2-foundation 0.3.2", "parlance", "read-fonts", - "roxmltree 0.21.2", + "roxmltree", "smallvec", "windows", "windows-core", @@ -2033,7 +2033,7 @@ dependencies = [ "image-webp", "moxcms", "num-traits", - "png 0.18.1", + "png", "tiff", "zune-core", "zune-jpeg", @@ -2051,9 +2051,9 @@ dependencies = [ [[package]] name = "imagesize" -version = "0.13.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edcd27d72f2f071c64249075f42e205ff93c9a4c5f6c6da53e79ed9f9832c285" +checksum = "65b27460c2c92b037f3f94c538ed9a3342f3fdf923606781629ccb35f82d042a" [[package]] name = "indexmap" @@ -2252,12 +2252,13 @@ dependencies = [ [[package]] name = "kurbo" -version = "0.11.3" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c62026ae44756f8a599ba21140f350303d4f08dcdcc71b5ad9c9bb8128c13c62" +checksum = "4b60dfc32f652b926df6192e55525b16d186c69d47876c3ead4da5cc9f8450e2" dependencies = [ "arrayvec", "euclid", + "polycool", "smallvec", ] @@ -2508,7 +2509,7 @@ checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d" [[package]] name = "naga" version = "30.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "arrayvec", "bit-set", @@ -4270,7 +4271,7 @@ checksum = "9c4482d912d7671a7cd2089794f90ef3bb5f5f8c738230fb0fcd50fa020f0ed3" [[package]] name = "parley_engine" version = "0.12.0" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "fontique", "harfrust", @@ -4459,19 +4460,6 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" -[[package]] -name = "png" -version = "0.17.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" -dependencies = [ - "bitflags 1.3.2", - "crc32fast", - "fdeflate", - "flate2", - "miniz_oxide 0.8.9", -] - [[package]] name = "png" version = "0.18.1" @@ -4505,6 +4493,15 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc6355899e1c9462875b6757c79f3caa011a1fdae12bbb1a2e72dd1f234f8336" +[[package]] +name = "polycool" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50596ddc09eb5ad5f75cacd40209568e66df71baf86e1499a0e99c4cff12a5a6" +dependencies = [ + "arrayvec", +] + [[package]] name = "portable-atomic" version = "1.15.0" @@ -4573,7 +4570,7 @@ dependencies = [ [[package]] name = "procwatch" version = "0.1.0" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "libc", ] @@ -4886,15 +4883,16 @@ checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" [[package]] name = "resvg" -version = "0.45.1" +version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8928798c0a55e03c9ca6c4c6846f76377427d2c1e1f7e6de3c06ae57942df43" +checksum = "77bb4b284cf8a5c8ae721594af53387fb755d2196fddb32b2acfb4fa9251fa0c" dependencies = [ + "bytemuck", "log", "pico-args", "rgb", "svgtypes", - "tiny-skia", + "tiny-skia 0.12.0", "usvg", ] @@ -4944,12 +4942,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "roxmltree" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c20b6793b5c2fa6553b250154b78d6d0db37e72700ae35fad9387a46f487c97" - [[package]] name = "roxmltree" version = "0.21.2" @@ -4962,7 +4954,7 @@ dependencies = [ [[package]] name = "rune" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "accesskit", "accesskit_android", @@ -4993,7 +4985,7 @@ dependencies = [ "objc2-foundation 0.3.2", "objc2-metal 0.3.2", "parley", - "png 0.18.1", + "png", "pollster", "procwatch", "raw-window-handle", @@ -5038,7 +5030,7 @@ dependencies = [ [[package]] name = "rune-core" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "js-sys", "libc", @@ -5059,7 +5051,7 @@ name = "rune-drive" version = "0.0.1" dependencies = [ "base64 0.22.1", - "png 0.18.1", + "png", "rune", "serde_json", "tungstenite", @@ -5068,7 +5060,7 @@ dependencies = [ [[package]] name = "rune-edit" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "js-sys", "parley", @@ -5082,7 +5074,7 @@ dependencies = [ [[package]] name = "rune-gpu" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "blake3", "bytemuck", @@ -5110,7 +5102,7 @@ dependencies = [ [[package]] name = "rune-headless" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "rune", ] @@ -5118,7 +5110,7 @@ dependencies = [ [[package]] name = "rune-highlights" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "unicode-ident", "wasmparser 0.245.1", @@ -5127,7 +5119,7 @@ dependencies = [ [[package]] name = "rune-i18n" version = "0.1.0" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "fixed_decimal", "icu_decimal", @@ -5148,7 +5140,7 @@ dependencies = [ [[package]] name = "rune-image" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "avif-parse", "blake3", @@ -5159,7 +5151,7 @@ dependencies = [ "moxcms", "objc2 0.6.5", "objc2-foundation 0.3.2", - "png 0.18.1", + "png", "rav1d", "resvg", "rune-core", @@ -5172,12 +5164,12 @@ dependencies = [ [[package]] name = "rune-justify" version = "0.1.0" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" [[package]] name = "rune-kit" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "icu_normalizer", "js-sys", @@ -5189,7 +5181,7 @@ dependencies = [ "rune-mermaid", "rune-motion", "skrifa", - "tiny-skia", + "tiny-skia 0.12.0", "unicode-segmentation", "wasm-bindgen", "wasmi", @@ -5199,7 +5191,7 @@ dependencies = [ [[package]] name = "rune-knobs" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "rune", ] @@ -5207,7 +5199,7 @@ dependencies = [ [[package]] name = "rune-mac" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "objc2 0.6.5", "rune-notify", @@ -5216,7 +5208,7 @@ dependencies = [ [[package]] name = "rune-media" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "ash", "blake3", @@ -5248,7 +5240,7 @@ dependencies = [ [[package]] name = "rune-mermaid" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "rune", ] @@ -5256,12 +5248,12 @@ dependencies = [ [[package]] name = "rune-motion" version = "0.1.0" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" [[package]] name = "rune-notify" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "async-channel", "async-io", @@ -5284,7 +5276,7 @@ dependencies = [ [[package]] name = "rune-perf" version = "0.1.0" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "procwatch", "serde_json", @@ -5293,7 +5285,7 @@ dependencies = [ [[package]] name = "rune-perf-monitor" version = "0.1.0" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "procwatch", "rune", @@ -5303,7 +5295,7 @@ dependencies = [ [[package]] name = "rune-psychoscript" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "notify", "oxc_allocator", @@ -5322,7 +5314,7 @@ dependencies = [ [[package]] name = "rune-register" version = "0.1.0" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "linkme", ] @@ -5330,7 +5322,7 @@ dependencies = [ [[package]] name = "rune-spell" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "objc2-app-kit 0.3.2", "objc2-foundation 0.3.2", @@ -5343,7 +5335,7 @@ dependencies = [ [[package]] name = "rune-staging" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "wgpu", "windows", @@ -5352,7 +5344,7 @@ dependencies = [ [[package]] name = "rune-taffy" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "stacker", "taffy", @@ -5361,7 +5353,7 @@ dependencies = [ [[package]] name = "rune-text" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "bytemuck", "fontique", @@ -5391,7 +5383,7 @@ dependencies = [ [[package]] name = "rune-theme-opencode" version = "0.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "rune", "rune-kit", @@ -5401,7 +5393,7 @@ dependencies = [ [[package]] name = "rune-tiny-skia-path" version = "0.11.4" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "arrayref", "bytemuck", @@ -5643,11 +5635,11 @@ dependencies = [ [[package]] name = "sctk-adwaita" version = "0.10.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "log", "smithay-client-toolkit", - "tiny-skia", + "tiny-skia 0.11.4", ] [[package]] @@ -6090,9 +6082,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "svgtypes" -version = "0.15.3" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68c7541fff44b35860c1a7a47a7cadf3e4a304c457b58f9870d9706ece028afc" +checksum = "9f12b12995e3638c70618c1facb1ce65302f6a6f706b675f07c58a5d7391120e" dependencies = [ "kurbo", "siphasher", @@ -6363,8 +6355,22 @@ dependencies = [ "bytemuck", "cfg-if", "log", - "png 0.17.16", - "tiny-skia-path", + "tiny-skia-path 0.11.4", +] + +[[package]] +name = "tiny-skia" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47ffee5eaaf5527f630fb0e356b90ebdec84d5d18d937c5e440350f88c5a91ea" +dependencies = [ + "arrayref", + "arrayvec", + "bytemuck", + "cfg-if", + "log", + "png", + "tiny-skia-path 0.12.0", ] [[package]] @@ -6378,6 +6384,17 @@ dependencies = [ "strict-num", ] +[[package]] +name = "tiny-skia-path" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edca365c3faccca67d06593c5980fa6c57687de727a03131735bb85f01fdeeb9" +dependencies = [ + "arrayref", + "bytemuck", + "strict-num", +] + [[package]] name = "tinystr" version = "0.8.5" @@ -6677,24 +6694,21 @@ dependencies = [ [[package]] name = "usvg" -version = "0.45.1" +version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80be9b06fbae3b8b303400ab20778c80bbaf338f563afe567cf3c9eea17b47ef" +checksum = "bdb896f04730b97805bbc3191fc57e4bf03face0f14577dd42e783c4d8c98802" dependencies = [ - "base64 0.22.1", "data-url", - "flate2", "imagesize", "kurbo", "log", "pico-args", - "roxmltree 0.20.0", + "roxmltree", "simplecss", "siphasher", "strict-num", "svgtypes", - "tiny-skia-path", - "xmlwriter", + "tiny-skia-path 0.12.0", ] [[package]] @@ -7143,7 +7157,7 @@ dependencies = [ [[package]] name = "wgpu-hal" version = "30.0.1" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "android_system_properties", "arrayvec", @@ -7543,7 +7557,7 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winit" version = "0.30.13" -source = "git+https://github.com/anomalyco/rune?rev=8a2083a05b177897bef3935a90715001347b291a#8a2083a05b177897bef3935a90715001347b291a" +source = "git+https://github.com/anomalyco/rune?rev=e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47#e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" dependencies = [ "ahash", "android-activity", @@ -7703,12 +7717,6 @@ version = "0.8.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7" -[[package]] -name = "xmlwriter" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec7a2a501ed189703dba8b08142f057e887dfc4b2cc4db2d343ac6376ba3e0b9" - [[package]] name = "yeslogic-fontconfig-sys" version = "6.0.1" diff --git a/Cargo.toml b/Cargo.toml index eadd12a77..171a6d9c0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -76,19 +76,19 @@ license = "MIT" # Rune's default features less two the app doesn't use: `embedded-fonts` (the app registers its own # faces, so Rune's bundled Inter was 1.25 MB nobody drew with) and `ogg-audio` (Ogg and Opus audio # for macOS video, which apps/desktop turns on for macOS alone). -rune = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a", default-features = false, features = ["accessibility", "dbus", "metal-backend", "svg", "x11"] } -rune-kit = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -rune-mermaid = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -rune-theme-opencode = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -rune-fx = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -rune-i18n = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -procwatch = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -rune-knobs = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -rune-mac = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -rune-notify = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -rune-perf-monitor = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -rune-register = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } -rune-psychoscript = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } +rune = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47", default-features = false, features = ["accessibility", "dbus", "metal-backend", "svg", "x11"] } +rune-kit = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +rune-mermaid = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +rune-theme-opencode = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +rune-fx = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +rune-i18n = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +procwatch = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +rune-knobs = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +rune-mac = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +rune-notify = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +rune-perf-monitor = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +rune-register = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } +rune-psychoscript = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } base64 = "0.22" polling = "3.11" # Objects keep their keys in the order they arrive, as JavaScript's do: a tool's arguments list as @@ -106,31 +106,31 @@ libmimalloc-sys = { path = "vendor/libmimalloc-sys" } # Rune's wgpu-hal (wgpu-hal as published plus `dx12::Instance::expose_adapter`, partial presents, and # removed-device fence handling, `vendor/wgpu-hal` in the Rune repo), at the Rune rev pinned above. # Keep the rev equal to the `rune` rev. -wgpu-hal = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } +wgpu-hal = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } # Rune's winit (winit 0.30 as published plus `vendor/winit.patch`: a new Windows window isn't added again # to the taskbar it's already on, which cost CoInitializeEx and a TaskbarList COM object on the UI # thread before the first frame, and Wayland `content_corner_radius`). Keep the rev equal to the `rune` rev. -winit = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } +winit = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } # Rune's sctk-adwaita (as published plus `vendor/sctk-adwaita.patch`: rounded bottom corners on Wayland # client-side frames and `AdwaitaFrame::content_corner_radius`). Keep the rev equal to the `rune` rev. -sctk-adwaita = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } +sctk-adwaita = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } # Rune's accesskit_windows (0.35.2 as published plus `vendor/accesskit_windows.patch`: headings and # landmarks reach UI Automation; a field past 64 KiB keeps its text pattern). At the same rev as `rune`. -accesskit_windows = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } +accesskit_windows = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } # Rune's accesskit_macos (0.27.2 as published plus `vendor/accesskit_macos.patch`: headings reach # VoiceOver as AppKit's AXHeading with their level; a field past 64 KiB keeps its line ranges). At the same # rev as `rune`. -accesskit_macos = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } +accesskit_macos = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } # Rune's parley_engine (0.12.0 as published plus `vendor/parley_engine.patch`: UAX #9 rule L1 at a # paragraph's end, so Unicode's BidiTest.txt passes whole; segmenters and font metrics made once, # not for every text and run). Keep the rev equal to the `rune` rev. -parley_engine = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } +parley_engine = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } # Rune's naga (30.0.1 as published plus `vendor/naga.patch`: constant-folding an expression to an earlier # handle neither stretches nor inverts an `Emit` range, gfx-rs/wgpu#7793; rune#1815). Keep the rev equal to the `rune` rev. -naga = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } +naga = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } # Rune's accesskit_atspi_common (0.21.1 as published plus `vendor/accesskit_atspi_common.patch`: item roles read their # own `size_of_set`; rune#1819). Keep the rev equal to the `rune` rev. -accesskit_atspi_common = { git = "https://github.com/anomalyco/rune", rev = "8a2083a05b177897bef3935a90715001347b291a" } +accesskit_atspi_common = { git = "https://github.com/anomalyco/rune", rev = "e5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47" } # Keep dependencies lean in dev (opt-level = 1 cuts cold build time, RAM, and target/ size # across Windows/macOS/Linux), while keeping full -O3 on the small set of CPU-hot crates diff --git a/apps/desktop/src/shell/tab_hibernate.rs b/apps/desktop/src/shell/tab_hibernate.rs index 7add4213b..259fde114 100644 --- a/apps/desktop/src/shell/tab_hibernate.rs +++ b/apps/desktop/src/shell/tab_hibernate.rs @@ -3,9 +3,9 @@ //! Evicts **only** reloadable heavy payloads (`pages`, `transcripts`, `context_windows`, cached //! `review` diff blobs, `turn_diffs`) for: //! - completed subagents whose root tab is cooling, hibernated, or closed after -//! [`SUBAGENT_IDLE_SECS`] (60 s), and +//! [`SUBAGENT_IDLE_SECS`] (30 s), and //! - untouched background tabs outside the [`WARM_BACKGROUND_TABS`] (2) MRU buffer after -//! [`TAB_IDLE_SECS`] (180 s). +//! [`TAB_IDLE_SECS`] (90 s). //! //! Subagent children of the active route, `opening`, busy sessions, the 2 warm MRU tabs, or //! `other_windows_shown` stay warm so parent timelines (`agent_rows`) retain summary lines. @@ -23,8 +23,8 @@ use rune::Tracked; use crate::{App, Route, Source, windows}; -const SUBAGENT_IDLE_SECS: f64 = 60.0; -const TAB_IDLE_SECS: f64 = 180.0; +const SUBAGENT_IDLE_SECS: f64 = 30.0; +const TAB_IDLE_SECS: f64 = 90.0; /// Bounded re-check cadence only for rare transient auxiliary holds outside `Fingerprint` /// (`submit::Held`, `echoes`, `QUEUE_OPS`, `REWIND`, `FORK`, `SHELLS`, unsettled transcript). const BUSY_RECHECK_SECS: f64 = 60.0; @@ -124,7 +124,8 @@ struct Fingerprint { route_ver: u64, tabs_ver: u64, running_ver: u64, stops_ver: u64, pending_ver: u64, requests_ver: u64, inboxes_ver: u64, unsent_ver: u64, starts_ver: u64, checkout_ver: u64, parked_stamp: u64, - transcripts_len: usize, opening_present: bool, other_unreported: bool, live: bool, online: bool, + transcripts_len: usize, sessions_len: usize, has_pool: bool, + opening_present: bool, other_unreported: bool, live: bool, online: bool, } impl Fingerprint { @@ -143,6 +144,8 @@ impl Fingerprint { checkout_ver: s.checkout.version(), parked_stamp: s.checkout.parked_hibernate_stamp(), transcripts_len: Tracked::untracked(&s.transcripts).len(), + sessions_len: Tracked::untracked(&s.sessions).len(), + has_pool: Tracked::untracked(&s.pages).has_pool(), opening_present: Tracked::untracked(&s.opening).is_some(), other_unreported: windows::any_other_window_unreported(&Tracked::untracked(&s.window).id), live, @@ -186,11 +189,10 @@ pub(crate) fn poll(s: &mut App, now: f64, tx: &mut rune::Tx) -> bool { let (prev_fp, prev_phase) = s.kernel.slots.try_untracked(&HIBERNATE) .map_or((None, SweepPhase::Idle), |h| (h.observed, h.phase)); let changed = prev_fp != Some(fp); - if !changed { - let mut probe = prev_phase; - if matches!(step_phase(&mut probe, PhaseEvent::Tick { now }), PhaseEffect::None) { - return false; - } + let mut probe = prev_phase; + let tick_due = matches!(step_phase(&mut probe, PhaseEvent::Tick { now }), PhaseEffect::RunSweep); + if !changed && !tick_due { + return false; } let mut state = std::mem::take(s.kernel.slots.get_or_default(&HIBERNATE)); @@ -200,7 +202,10 @@ pub(crate) fn poll(s: &mut App, now: f64, tx: &mut rune::Tx) -> bool { state.active_tab = update_recent_tabs(s, &mut state.recent_tabs); } let active_tab = state.active_tab.as_ref(); - let effect = if !changed { + // Run an already-due sweep even when non-navigation fingerprint fields change so frequent + // background activity (`running`, `inboxes`, `parked_stamp`) cannot starve overdue eviction. + // Defer synchronous eviction only on tab/route click frames (`route_or_tabs`). + let effect = if !changed || (tick_due && !route_or_tabs) { step_phase(&mut state.phase, PhaseEvent::Tick { now }) } else { let next_due = if Fingerprint::full_scan(prev_fp, fp) { @@ -267,7 +272,10 @@ fn scan_active_only(s: &mut App, active_tab: Option<&SessionKey>, recent: &[Sess let mut earliest = if r.evict.is_empty() { r.earliest_due } else { min_due(r.earliest_due, Some(now + CLICK_EVICT_DEFER_SECS)) }; for (_, w) in warmth.iter().filter(|((srv, _), _)| *srv != active_key) { let d = match *w { - TabWarmth::Cooling { idle_since, kind } => Some(idle_since + kind.grace_secs()), + TabWarmth::Cooling { idle_since, kind } => { + let due = idle_since + kind.grace_secs(); + Some(if now + CLOCK_EPS >= due { now + CLICK_EVICT_DEFER_SECS } else { due }) + } TabWarmth::Busy { recheck: true } => Some(now + BUSY_RECHECK_SECS), TabWarmth::Active | TabWarmth::Busy { recheck: false } | TabWarmth::WarmMru { .. } => None, }; From 20c7b5e265fbf739287539e004e74c23e5e53534 Mon Sep 17 00:00:00 2001 From: Luke Parker <10430890+Hona@users.noreply.github.com> Date: Sun, 6 Dec 2026 22:44:20 +1000 Subject: [PATCH 2/2] fix(memory): preserve deferred parked cooling and parked session/pool stamp --- apps/desktop/src/shell/tab_hibernate.rs | 18 ++++++++++++------ apps/desktop/src/workspace/servers/half.rs | 7 ++++++- apps/desktop/src/workspace/windows/peer.rs | 1 + 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/apps/desktop/src/shell/tab_hibernate.rs b/apps/desktop/src/shell/tab_hibernate.rs index 259fde114..b5844b0c1 100644 --- a/apps/desktop/src/shell/tab_hibernate.rs +++ b/apps/desktop/src/shell/tab_hibernate.rs @@ -59,7 +59,7 @@ pub(crate) enum TabWarmth { enum WarmthInput { Active, Busy { recheck: bool }, WarmMru, Idle(CoolKind) } #[derive(Clone, Copy, Debug, PartialEq)] -enum WarmthOutcome { Keep { state: TabWarmth, due: Option }, Evict } +enum WarmthOutcome { Keep { state: TabWarmth, due: Option }, Evict { idle_since: f64, kind: CoolKind } } fn step_warmth(prev: Option, input: WarmthInput, now: f64) -> WarmthOutcome { let since = match prev { @@ -77,7 +77,7 @@ fn step_warmth(prev: Option, input: WarmthInput, now: f64) -> WarmthO WarmthInput::Idle(kind) => { let due = since + kind.grace_secs(); if now + CLOCK_EPS >= due { - WarmthOutcome::Evict + WarmthOutcome::Evict { idle_since: since, kind } } else { WarmthOutcome::Keep { state: TabWarmth::Cooling { idle_since: since, kind }, due: Some(due) } } @@ -197,14 +197,16 @@ pub(crate) fn poll(s: &mut App, now: f64, tx: &mut rune::Tx) -> bool { let mut state = std::mem::take(s.kernel.slots.get_or_default(&HIBERNATE)); let route_or_tabs = prev_fp.is_none_or(|p| p.route_ver != fp.route_ver || p.tabs_ver != fp.tabs_ver); + let sessions_changed = prev_fp.is_none_or(|p| p.sessions_len != fp.sessions_len); let on_session = matches!(Tracked::untracked(&s.route), Route::Session { .. }); - if route_or_tabs || (on_session && state.active_tab.is_none()) { + if route_or_tabs || (on_session && (state.active_tab.is_none() || sessions_changed)) { state.active_tab = update_recent_tabs(s, &mut state.recent_tabs); } let active_tab = state.active_tab.as_ref(); // Run an already-due sweep even when non-navigation fingerprint fields change so frequent // background activity (`running`, `inboxes`, `parked_stamp`) cannot starve overdue eviction. - // Defer synchronous eviction only on tab/route click frames (`route_or_tabs`). + // Defer synchronous eviction when `route_or_tabs` changes (tab/route click frames, and + // background tab title/dir refreshes that bump `tabs_ver`). let effect = if !changed || (tick_due && !route_or_tabs) { step_phase(&mut state.phase, PhaseEvent::Tick { now }) } else { @@ -398,9 +400,13 @@ fn eval_current_server( warm_ids.insert(sid.clone()); earliest_due = min_due(earliest_due, due); } - WarmthOutcome::Evict => { + WarmthOutcome::Evict { idle_since, kind } => { evict.push(sid.clone()); - if apply_evict { warmth.remove(&key); } + if apply_evict { + warmth.remove(&key); + } else { + warmth.insert(key, TabWarmth::Cooling { idle_since, kind }); + } } } } diff --git a/apps/desktop/src/workspace/servers/half.rs b/apps/desktop/src/workspace/servers/half.rs index 61b7f43df..167832d3a 100644 --- a/apps/desktop/src/workspace/servers/half.rs +++ b/apps/desktop/src/workspace/servers/half.rs @@ -255,7 +255,12 @@ impl Checkout { let mut xor = 0u64; for (key, _, half) in &self.slot.parked { let mut h = std::collections::hash_map::DefaultHasher::new(); - (key, Tracked::untracked(&half.opening).is_some(), Tracked::untracked(&half.store).hibernate_data_stamp()).hash(&mut h); + ( + key, + Tracked::untracked(&half.opening).is_some(), + Tracked::untracked(&half.pages).has_pool(), + Tracked::untracked(&half.store).hibernate_data_stamp(), + ).hash(&mut h); xor ^= h.finish(); } xor diff --git a/apps/desktop/src/workspace/windows/peer.rs b/apps/desktop/src/workspace/windows/peer.rs index 94c964749..818e71b95 100644 --- a/apps/desktop/src/workspace/windows/peer.rs +++ b/apps/desktop/src/workspace/windows/peer.rs @@ -324,6 +324,7 @@ impl Link { Tracked::version(&d.requests), Tracked::version(&d.pending), Tracked::version(&d.inboxes), Tracked::version(&d.unsent), Tracked::untracked(&d.transcripts).len(), + Tracked::untracked(&d.sessions).len(), ).hash(&mut h); h.finish() };