From cc10154642848008757ba5fbc0ddb801a76b1583 Mon Sep 17 00:00:00 2001 From: drob Date: Fri, 17 Jul 2026 06:46:30 +0000 Subject: [PATCH 1/3] Make satisfying-sort animation ~3x faster (sort pass only) --- src/commands/satisfying_sort/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/satisfying_sort/mod.rs b/src/commands/satisfying_sort/mod.rs index b7daafb..1f06436 100644 --- a/src/commands/satisfying_sort/mod.rs +++ b/src/commands/satisfying_sort/mod.rs @@ -25,7 +25,10 @@ use render::{compute_logo_viewport, halfblocks_cell_aspect_x, render_halfblocks_ use sort_state::{sort_delay_ms, SortState}; const ARRAY_SIZE: usize = 1000; -const SPEED: u8 = 20; +// Per-step render cost is fixed, so wall-clock speed scales sub-linearly with the +// derived step delay; SPEED is tuned by measurement (82 => ~9ms/step) rather than +// picked for a clean fraction. +const SPEED: u8 = 82; const NOISE: u8 = 100; const GREEN_SPEED: u8 = 50; const LOOP_DELAY_MS: u64 = 2000; From a97547b2512241e0d7bab99c933ef2897aa1ef4c Mon Sep 17 00:00:00 2001 From: drob Date: Fri, 17 Jul 2026 07:47:21 +0000 Subject: [PATCH 2/3] Drop explanatory comment on SPEED constant --- src/commands/satisfying_sort/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/commands/satisfying_sort/mod.rs b/src/commands/satisfying_sort/mod.rs index 1f06436..fc97698 100644 --- a/src/commands/satisfying_sort/mod.rs +++ b/src/commands/satisfying_sort/mod.rs @@ -25,9 +25,6 @@ use render::{compute_logo_viewport, halfblocks_cell_aspect_x, render_halfblocks_ use sort_state::{sort_delay_ms, SortState}; const ARRAY_SIZE: usize = 1000; -// Per-step render cost is fixed, so wall-clock speed scales sub-linearly with the -// derived step delay; SPEED is tuned by measurement (82 => ~9ms/step) rather than -// picked for a clean fraction. const SPEED: u8 = 82; const NOISE: u8 = 100; const GREEN_SPEED: u8 = 50; From a5fe08f9839403ce76d838d93ca26e72590abd9e Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 23:04:32 +0000 Subject: [PATCH 3/3] chore(deps): bump crossbeam-epoch and quinn-proto to patch RUSTSEC advisories Co-Authored-By: Sachin Iyer --- Cargo.lock | 88 +++++++++++++----------------------------------------- 1 file changed, 20 insertions(+), 68 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 17d3a06..09cffdc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -277,7 +277,7 @@ checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601" dependencies = [ "cfg-if", "cpufeatures 0.3.0", - "rand_core 0.10.0", + "rand_core", ] [[package]] @@ -528,9 +528,9 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.18" +version = "0.9.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f" dependencies = [ "crossbeam-utils", ] @@ -672,7 +672,7 @@ dependencies = [ "open", "percent-encoding", "progenitor", - "rand 0.10.1", + "rand", "ratatui", "regress", "reqwest", @@ -921,11 +921,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" dependencies = [ "cfg-if", - "js-sys", "libc", "r-efi 5.3.0", "wasip2", - "wasm-bindgen", ] [[package]] @@ -935,11 +933,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" dependencies = [ "cfg-if", + "js-sys", "libc", "r-efi 6.0.0", - "rand_core 0.10.0", + "rand_core", "wasip2", "wasip3", + "wasm-bindgen", ] [[package]] @@ -1710,15 +1710,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" -[[package]] -name = "ppv-lite86" -version = "0.2.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" -dependencies = [ - "zerocopy", -] - [[package]] name = "prettyplease" version = "0.2.37" @@ -1832,15 +1823,16 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.14" +version = "0.11.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "434b42fec591c96ef50e21e886936e66d3cc3f737104fdb9b737c40ffb94c098" +checksum = "2f4bfc015262b9df63c8845072ce59068853ff5872180c2ce2f13038b970e560" dependencies = [ "aws-lc-rs", "bytes", - "getrandom 0.3.4", + "getrandom 0.4.2", "lru-slab", - "rand 0.9.4", + "rand", + "rand_pcg", "ring", "rustc-hash", "rustls", @@ -1887,16 +1879,6 @@ version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" -[[package]] -name = "rand" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea" -dependencies = [ - "rand_chacha", - "rand_core 0.9.5", -] - [[package]] name = "rand" version = "0.10.1" @@ -1905,34 +1887,24 @@ checksum = "d2e8e8bcc7961af1fdac401278c6a831614941f6164ee3bf4ce61b7edb162207" dependencies = [ "chacha20", "getrandom 0.4.2", - "rand_core 0.10.0", + "rand_core", ] [[package]] -name = "rand_chacha" -version = "0.9.0" +name = "rand_core" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" -dependencies = [ - "ppv-lite86", - "rand_core 0.9.5", -] +checksum = "0c8d0fd677905edcbeedbf2edb6494d676f0e98d54d5cf9bda0b061cb8fb8aba" [[package]] -name = "rand_core" -version = "0.9.5" +name = "rand_pcg" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a" dependencies = [ - "getrandom 0.3.4", + "rand_core", ] -[[package]] -name = "rand_core" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c8d0fd677905edcbeedbf2edb6494d676f0e98d54d5cf9bda0b061cb8fb8aba" - [[package]] name = "ratatui" version = "0.30.0" @@ -3776,26 +3748,6 @@ dependencies = [ "synstructure", ] -[[package]] -name = "zerocopy" -version = "0.8.42" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2578b716f8a7a858b7f02d5bd870c14bf4ddbbcf3a4c05414ba6503640505e3" -dependencies = [ - "zerocopy-derive", -] - -[[package]] -name = "zerocopy-derive" -version = "0.8.42" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e6cc098ea4d3bd6246687de65af3f920c430e236bee1e3bf2e441463f08a02f" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "zerofrom" version = "0.1.6"