It depends on the file :-).

$ rm foo; for i in `seq 20000`; do (printf '\033[H'; cat /etc/fstab) >>foo; done
$ wc -l foo
260000 foo

$ screen
$ clear; time cat foo
...
real    0m1.687s
user    0m0.000s
sys     0m0.260s

$ tmux
$ clear; time cat foo
...
real    0m1.308s
user    0m0.000s
sys     0m0.196s

$ sed -i 's|\(READ_...._SIZE\) .*|\1 4096|g' tmux.h
$ make
...
$ ./tmux
$ clear; time cat foo
...
real    0m0.519s
user    0m0.000s
sys     0m0.232s

Of course this is a cheat, because I know it is optimized.

We are definitely a bit slower than we should be... would merit some
investigation. IIRC it used to be faster.




On Fri, Feb 03, 2017 at 09:21:58AM -0600, Josef Fortier wrote:
> I saw this posted on reddit:
> https://www.reddit.com/r/tmux/comments/5or3e4/tmux_really_slows_down_the_terminal_performance_a/
> 
> Basically:
> time cat large_file
> 
> tmux is much slower then screen, dvtm (an order of magnitude)
> It's not a huge issue, but it is a little disconcerting.
> 
> Early in the thread there's this comment:
> "Please verify that you're using the newest tmux version available.
> The slowdown is known and there are multiple tickets about that in the
> project."
> 
> I looked for tickets, and mostly saw references to CTRL-C not
> registering (and mostly on MacOS)
> This doesn't seem to address this issue.
> 
> Is this actually a known issue?
> Can anyone point me to better understanding about why this is?
> 
> Thanks :-)
> 
> -- 
> Josef Fortier
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send an email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to