Loading ...
Sorry, an error occurred while loading the content.

136754Re: Why is Vimscript/VimL much slower than Python when traversing long lists?

Expand Messages
  • Marc Weber
    Mar 15, 2013
    • 0 Attachment
      VimL is known to be slow.

      If you know that you need speed use python or external tools.

      Why is it the way it is? I don't know.

      Eventually wait for better replies.

      I can recommend using a disnict .py file for writing python because then
      you get all python support (syntax, completion, etc).

      If you want to learn how a .py file can be found by path have a look at

      let s:self=expand('<sfile>:h')

      You may also want to use a str quoting function like this:

      def vimQuote(s):
      return '"%s"' % s.replace("\\","\\\\").replace('"', '\\"').replace("\n", "\\n")

      because python's to str comes only close (maybe I should retry the to
      json implementation and find out when whether it fails)

      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

      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@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 8 messages in this topic