> It's okay with this new notation and thank you for less chars as backslash.
>
> Do profiler show performance gain for vimscript migrated in vim9 ?
>
> g:fzf_colors =3D { fg: ['fg', 'Normal'],
> bg: ["bg", "Normal"],
> hl: ["fg", "IncSearch"],
> info: ["fg", "IncSearch"],
> border: ["fg", "Ignore"],
> prompt: ["fg", "Comment"],
> pointer: ["fg", "IncSearch"],
> marker: ["fg", "IncSearch"],
> spinner: ["fg", "IncSearch"],
> header: ["fg", "WildMenu"],
> *['fg+']*: ["fg", "CursorLine", "CursorColumn", "Normal"],
> ['bg+']: ["bg", "CursorLine", "CursorColumn"],
> ['hl+']: ["fg", "IncSearch"],
> }
Changes at the script level won't show much performance gain. You do
get the improved syntax and type checking.
Anything that is executed more than once should be put in a :def
function, that's where you will get a large performance gain. Depending
on what the code is doing something like ten to a hundred times faster.
--
TALL KNIGHT: Firstly. You must get us another shrubbery!
OTHER KNIGHTS: More shrubberies! More shrubberies for the ex-Knights of Ni!
ARTHUR: Not another shrubbery -
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/202012031610.0B3GAhW9240794%40masaka.moolenaar.net.
Thursday, December 3, 2020
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment