Wednesday, May 13, 2015

Re: performance test on sourcing 6800 entries menu vimfile

2015-05-13 19:20 GMT+03:00 Ni Va <nivaemail@gmail.com>:
> Maybe it's when you have to launch several system or others own commands in an independant way on more than 300 machines (XP, Seven and physical or virtual).
>
> Total of all these commands (~20) by 300 machines let you understand that I effectively need to launch independantly command of my choice on one machine or a group of machines.
>
> It's not a usual case!
>
> commands : (SYS : reboot, shutdown, diskpart, NTP resynch, MSTSC or vmware cmds).

I would rather suggest writing ~20 (or one with three arguments) user
commands which will accept machine identifier (it does not have to be
TARGETMACHINEDNSNAME, but it has to be unique) if you need to do this
from Vim.

And for each of the commands write custom completer, this is rather simple.

As the result you will have a simple function (1 line of code if you
want to write ~20 user commands and have usual Vim simple prefix
completion, ~5 if you want to have 1 command), a list of command
definitions (depending on whether you will have 1 user command or ~20
this will either be a sequence of :command calls (second case) or one
:command call and some data structure holding ~20 other commands) and
a list of machines. Parsing this is *far* faster and you can even
fetch a list of machines at request (i.e. when you trigger completion)
from an external file making startup even faster (I do not think you
will need this).

I see why you think you need such menus. But I can't believe this can
be efficient.

>
> --
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment