You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
source the code above, after pressing <leader>key multiple times, i get the this result in btop
To trigger this problem, there are at least three requirements
refering to a variable that is in closure scope (must_used_variable in this case)
use a higher order function to decorate a lambda function
assigning this lambda function to a variable
otherwise, vim works fine and this problem will not be triggered
Expected behaviour
I have a function, which is frequently called, works just like the above one.
vim soon comsumes more memory than I expected.
I expect that functions like this should work with no memory leak problem.
Steps to reproduce
source the code above, after pressing
<leader>
key multiple times, i get the this result in btopTo trigger this problem, there are at least three requirements
must_used_variable
in this case)otherwise, vim works fine and this problem will not be triggered
Expected behaviour
I have a function, which is frequently called, works just like the above one.
vim soon comsumes more memory than I expected.
I expect that functions like this should work with no memory leak problem.
Version of Vim
9.1.380
Environment
OS: 6.1.90-1-MANJARO
terminal: alacritty 0.8.0-dev (3ed0430)
$TERM="xterm-256color"
shell: bash 5.2.26
Logs and stack traces
The text was updated successfully, but these errors were encountered: