]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1459: xxd: coloring output is inefficient v9.1.1459
authorEmanuel Krollmann <E.Krollmann@protonmail.com>
Sun, 15 Jun 2025 14:24:09 +0000 (16:24 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 15 Jun 2025 14:24:09 +0000 (16:24 +0200)
commit6897f18ee6e5bb78b32c97616e484030fd514750
tree6d6620fe7877ab694f7b63e29872094d1ae2d6a0
parentf5aa269f2d51fe2366e35d7fc3626b05aba31651
patch 9.1.1459: xxd: coloring output is inefficient

Problem:  xxd prints color escape sequences for every octet
          even if the color doesn't change
Solution: use separate arrays for colors and text and only
          print escape sequences when the color changes
          (Emanuel Krollmann)

fixes: #15122
closes: #17535

Signed-off-by: Emanuel Krollmann <E.Krollmann@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_xxd.vim
src/version.c
src/xxd/xxd.c