[vim/vim] There may be memory leak in python-buffer. (#1726)

14 views
Skip to first unread message

Yggdroot

unread,
May 26, 2017, 9:58:20 AM5/26/17
to vim/vim, Subscribed
function! Test()
python << EOF

import vim
import time
b = vim.current.buffer
aaa = ["aaaaaa"*1000]*50000
start = time.time()
b[:] = aaa
print(time.time() - start)

EOF
endfunction

In an empty buffer, execute this function for several times, it takes longer and longer.
At last, it run out of memory.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub

Reply all
Reply to author
Forward
0 new messages