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

Re: Vim slow after big count insert

Expand Messages
  • Christian Brabandt
    Hi Mike! ... Are you going to create a patch for that? ... Not only that, but getvcol() is called twice from the edit() function. Once from
    Message 1 of 17 , Jul 30, 2013
    • 0 Attachment
      Hi Mike!

      On So, 21 Jul 2013, Mike Williams wrote:

      > On 20/07/2013 10:13, LCD 47 wrote:
      > > I believe this can be fixed with a counter that means something
      > >along the lines of: "this line is longer than &tw, and it has no
      > >breaking point for the first X characters". Then X would be updated
      > >every time more text is appended to that line.

      Are you going to create a patch for that?

      > Yup to all that. And there is another O(n^2) operation is getvcol()
      > rescanning the line after each insert.

      Not only that, but getvcol() is called twice from the edit() function.
      Once from validate_cursor_col() at line 695 and once from
      validate_cursor() at line 725. It seems like that either one of those
      calls could be saved.

      regards,
      Christian
      --
      Wie man sein Kind nicht nennen sollte:
      Hans Dampf

      --
      --
      You received this message from the "vim_dev" 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_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    Your message has been successfully submitted and would be delivered to recipients shortly.