Package: tmux
Version: 3.4-6
Severity: normal

I have tmux configured with a large history limit (10000000).  I
normally start tmux once when I boot the machine and don't exit it until
many days later (sometimes over a month) when I reboot.  Consequently,
my tmux panes acquire a large amount of history over many days.

Before tmux 3.4, entering copy mode (with C-a [) was relatively fast
(less than a second).  However, with tmux 3.4, a terminal pane with
3253340 lines of text takes at least 3 seconds, if not longer, to enter
copy mode.  This may be because of the new timestamp feature in 3.4,
which I don't need or use.

I'd like tmux to return to its previous performance, since I enter copy
mode extremely frequently to copy text to the clipboard and a
multi-second delay is unbearably slow.  If it is the timestamp feature
making it slow, then I'd be happy with an option to turn that off to
regain the performance.

In case you need reproduction steps, you can try the following Ruby
program, which prints the GPLv2 (chosen solely for its length) to the
terminal many times.  Once there's a substantial history (you don't need
to wait for the program to complete entirely and can interrupt it), you
can enter copy mode and see that it takes an extended amount of time.

  ruby -e 'a = File.read("/usr/share/common-licenses/GPL-2"); 100_000.times { 
puts a }'

In case it is relevant, you may see the entire tmux.conf at [0].

[0] https://github.com/bk2204/dotfiles/blob/dev/tmux/tmux.conf

-- System Information:
Debian Release: trixie/sid
  APT prefers oldstable-security
  APT policy: (500, 'oldstable-security'), (500, 'unstable'), (500, 'stable'), 
(1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.7.12-amd64 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER, TAINT_WARN
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tmux depends on:
ii  libc6                   2.38-13
ii  libevent-core-2.1-7t64  2.1.12-stable-10
ii  libsystemd0             256.1-1
ii  libtinfo6               6.5-2
ii  libutempter0            1.2.1-3+b1

tmux recommends no packages.

tmux suggests no packages.

-- no debconf information

-- 
brian m. carlson (they/them or he/him)
Toronto, Ontario, CA

Attachment: signature.asc
Description: PGP signature

Reply via email to