On 12-May-2024 08:54, Tony Mechelynck wrote:
On Sun, May 12, 2024 at 12:15 AM Christian Brabandt <cbli...@256bit.org> wrote:
patch 9.1.0409: too many strlen() calls in the regexp engine
Commit:
https://github.com/vim/vim/commit/82792db6315f7c7b0e299cdde1566f2932a463f8
Author: John Marriott <basil...@internode.on.net>
Date: Sun May 12 00:07:17 2024 +0200
patch 9.1.0409: too many strlen() calls in the regexp engine
Problem: too many strlen() calls in the regexp engine
Solution: refactor code to retrieve strlen differently, make use
of bsearch() for getting the character class
(John Marriott)
closes: #14648
Signed-off-by: John Marriott <basil...@internode.on.net>
Signed-off-by: Christian Brabandt <c...@256bit.org>
Hi Tony,
Please try the fix in PR#14754 or the attached patch.
Cheers
John
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/377c4060-08ba-466b-a759-737cabc15ddb%40internode.on.net.
--- ../../../vim/git/vim/src/regexp.c 2024-05-12 13:12:31.495260800 +1000
+++ ./regexp.c 2024-05-12 13:03:01.987293700 +1000
@@ -642,7 +642,7 @@
{
if (dirc == '?' && newp != NULL && p[1] == '?')
{
- size_t startplen;
+ size_t startplen = 0;
// change "\?" to "?", make a copy first.
if (*newp == NULL)