]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1645: fuzzy.c can be further improved v9.1.1645
authorglepnir <glephunter@gmail.com>
Sun, 17 Aug 2025 19:40:45 +0000 (21:40 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 17 Aug 2025 19:40:45 +0000 (21:40 +0200)
commit59799f3afac310f3dca409e295b2ce2036867eaf
tree200595386dd55e2180b2de0224c6e5396b66af7c
parentce288c7fb05d91fa4bb434485471d65d2045aece
patch 9.1.1645: fuzzy.c can be further improved

Problem:  fuzzy.c can be further improved
Solution: Fix memory leak and refactor it (glepnir).

Optimize performance and memory allocation:

- Fix memory leak in fuzzy_match_in_list.
- using single memory allocation in match_positions
- Improve has_match performance and add null pointer checks

closes: #18012

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/fuzzy.c
src/version.c