Excerpts from richard emberson's message of Fri May 25 00:53:52 +0200 2012:
> Is there a resource concerning the writing of optimized
> Vim scripts (both memory usage and performance).
What machine are you running Vim on?
Seriously, don't bother about it - do what fits your mind best else use
assembler to safe some resources.
What really helps:
- use autoload functions (so that code is only loaded if needed)
for speed critical stuff: Don't use VimL - its known to be slow.
Write external helper applications and call them (Sorry about that).
Eg I tried writing a fuzzy delphi parser and optimizing it for days -
without result. I tried writing a tagging engine for as3 files - in the
end it worked - but all operations took a second - again I tried
spending hours on optimizing it - the fix would have been not using
VimL (it was about parsing and caching 2000 .as3 files)
- and that second was operating on the in memory cache.
How to find out which version is fastest? get tlib, there is a simple
benchmark function, use that.
My two cents on this topic
Marc Weber
--
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
No comments:
Post a Comment