Reflowing the grid in-place involved way too much memmove() for a big
authornicm <nicm@openbsd.org>
Fri, 16 Feb 2018 09:51:41 +0000 (09:51 +0000)
committernicm <nicm@openbsd.org>
Fri, 16 Feb 2018 09:51:41 +0000 (09:51 +0000)
commitf2ca94d13c77b425b3f78c65d5f820ff75e35af0
treebe81f2aa0f5275c205b994f0709a3f69907e5b96
parent08c753b79618aa3f9181e8c4039cf4cf0ec923f9
Reflowing the grid in-place involved way too much memmove() for a big
performance cost with a large history. Instead change back to using a
second grid and copying modified lines over which is much faster (this
doesn't revert to the old code however which didn't support UTF-8
properly). GitHub issue 1249.
usr.bin/tmux/grid.c
usr.bin/tmux/tmux.h