On Di, 11 Jan 2022, Gianmaria Bajo wrote:

> Even getting/setting lines in one go (as in the lua version) doesn't improve 
> it for me:
> 
> vim9script
> 
> def g:VimTest(): void
>     var totallen = 0
>     var start = reltime()
>     new
>     setline(1, range(100000))
>     var lines = getline(1, 100000)
>     for i in range(100000)
>         lines[i] = '    ' .. lines[i]
>         totallen += len(lines[i])
>     endfor
>     setline(1, lines)
>     echom totallen
>     echom reltimestr(reltime(start))
>     bwipe!
> enddef
> 
> Result:
> 
> :call VimTest()
> 888890
>   0.330822

That is even slower?



Mit freundlichen Grüßen
Christian
-- 
Mit welcher Geschwindigkeit breitet sich das Dunkel aus?

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20220111130746.GC3428284%40256bit.org.

Reply via email to