On Sun, Apr 21, 2024 at 6:09 PM Yegappan Lakshmanan <
vim-dev-git...@256bit.org> wrote:

> The tests in test_vim9_builtin.vim use the CheckDefAndScriptFailure(),
> CheckDefExecFailure(), etc. functions from the vim9.vim file.
> These functions store the supplied lines in a file and then source the
> file. This takes time. Instead of using a file, these lines can be stored
> in a buffer and then sourced. This method is already used by the new Vim9
> test scripts (e.g. test_vim9_class.vim, test_vim9_typealias.vim,
> test_vim9_enum.vim etc.). Convert the tests in test_vim9_builtin.vim to use
> the new functions.
>
> Before this change, it used to take around 22 seconds to run the tests.
> After this change, it takes around 2.5 seconds.
>
>
I was running the test with the address sanitizer enabled which resulted in
22 seconds.  Without ASAN, it takes around
8 seconds to run the tests in test_vim9_builtin.vim.

-- 
-- 
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/CAAW7x7n4Cx8CRuc7Kz0y6aosJdOQ_5HKsaxde0rLn25hwRC9%3Dw%40mail.gmail.com.

Raspunde prin e-mail lui