]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1622: Patch v9.1.1432 causes performance regressions v9.1.1622
authorYee Cheng Chin <ychin.git@gmail.com>
Sun, 10 Aug 2025 08:03:26 +0000 (10:03 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 10 Aug 2025 08:05:29 +0000 (10:05 +0200)
commitcda0d17f5937c9e09d6821da64e57d589fd3c404
treec094f519558ba9984f89ea70314f9aaf735d3387
parentda9c9668931e5c8ee4dc0e430898ad2d80f56862
patch 9.1.1622: Patch v9.1.1432 causes performance regressions

Problem:  Patch v9.1.1432 causes performance regressions
Solution: Revert "patch 9.1.1432: GTK GUI: Buffer menu does not handle
          unicode correctly" (Yee Cheng Chin).

This reverts commit 08896dd330c6dc8324618fde482db968e6f71088.

The previous change to support Unicode characters properly in the
buffers menu resorted to removing all buffer menus and re-add the
buffers after doing a sort, per each buffer addition. This was quite
slow because if Vim is trying to load in multiple buffers at once (e.g.
when loading a session) this scales in O(n^2) and Vim can freeze for
dozens of seconds when adding a few hundred buffers.

related: #17405
related: #17928
fixes: #17897

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/menu.vim
src/testdir/test_gui.vim
src/version.c