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.
https://github.com/vim/vim/pull/14614
(3 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
thanks!
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.