aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/fi/fish-patched/patches/0008-history-turtle-Reverse-history-upon-load.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/fi/fish-patched/patches/0008-history-turtle-Reverse-history-upon-load.patch')
-rw-r--r--pkgs/by-name/fi/fish-patched/patches/0008-history-turtle-Reverse-history-upon-load.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/by-name/fi/fish-patched/patches/0008-history-turtle-Reverse-history-upon-load.patch b/pkgs/by-name/fi/fish-patched/patches/0008-history-turtle-Reverse-history-upon-load.patch
new file mode 100644
index 00000000..b7331637
--- /dev/null
+++ b/pkgs/by-name/fi/fish-patched/patches/0008-history-turtle-Reverse-history-upon-load.patch
@@ -0,0 +1,28 @@
+From 5afaf63f339cfc183a8728363fbb34a710f0e2dc Mon Sep 17 00:00:00 2001
+From: Benedikt Peetz <benedikt.peetz@b-peetz.de>
+Date: Mon, 24 Aug 2026 21:32:51 +0200
+Subject: [PATCH 08/10] history/turtle: Reverse history upon load
+
+For _some_ reason, that seems to improve performance by 5x?!
+(I presume I'm just measuring wrong.)
+---
+ src/history/turtle.rs | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/history/turtle.rs b/src/history/turtle.rs
+index 2143f38a9..4ac931a19 100644
+--- a/src/history/turtle.rs
++++ b/src/history/turtle.rs
+@@ -34,6 +34,9 @@ fn loaded_history(&mut self) -> &[History] {
+ if NEW_LOADED_HISTORY_AVAILABLE.load(Ordering::Relaxed) {
+ if let Some(pre_loaded_history) = self.handler.load_history_resp() {
+ self.loaded_history = pre_loaded_history;
++
++ // PERFORMANCE: That seems to improve performance? <2026-08-24>
++ self.loaded_history.reverse();
+ }
+
+ flogf!(
+--
+2.55.0
+