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

:sh make vim slow on windows.

Expand Messages
  • mattn
    on windows, gvim become slow while executing shell. When type alt-tab to switch focus of windows, vim don t work quickly. If it have many window messages, I
    Message 1 of 2 , Jul 30 7:12 PM
    • 0 Attachment
      on windows, gvim become slow while executing shell. When type alt-tab to switch focus of windows, vim don't work quickly. If it have many window messages, I guess, vim should do first priority.

      https://gist.github.com/3212747

      diff -r 0fc0108517a8 src/os_win32.c
      --- a/src/os_win32.c Sun Jul 29 12:55:32 2012 +0200
      +++ b/src/os_win32.c Tue Jul 31 11:06:26 2012 +0900
      @@ -3319,8 +3319,7 @@
      {
      TranslateMessage(&msg);
      pDispatchMessage(&msg);
      - }
      - if (WaitForSingleObject(pi.hProcess, delay) != WAIT_TIMEOUT)
      + } else if (WaitForSingleObject(pi.hProcess, delay) != WAIT_TIMEOUT)
      break;

      /* We start waiting for a very short time and then increase it, so

      --
      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
    • Bram Moolenaar
      ... Good idea. This still increases the delay after each processed message. We can use continue to avoid that. And we could also reset the delay. I ll make
      Message 2 of 2 , Aug 2, 2012
      • 0 Attachment
        Yasuhiro Matsumoto wrote:

        > on windows, gvim become slow while executing shell. When type alt-tab
        > to switch focus of windows, vim don't work quickly. If it have many
        > window messages, I guess, vim should do first priority.
        >
        > https://gist.github.com/3212747
        >
        > diff -r 0fc0108517a8 src/os_win32.c
        > --- a/src/os_win32.c Sun Jul 29 12:55:32 2012 +0200
        > +++ b/src/os_win32.c Tue Jul 31 11:06:26 2012 +0900
        > @@ -3319,8 +3319,7 @@
        > {
        > TranslateMessage(&msg);
        > pDispatchMessage(&msg);
        > - }
        > - if (WaitForSingleObject(pi.hProcess, delay) != WAIT_TIMEOUT)
        > + } else if (WaitForSingleObject(pi.hProcess, delay) != WAIT_TIMEOUT)
        > break;
        >
        > /* We start waiting for a very short time and then increase it, so

        Good idea. This still increases the delay after each processed message.
        We can use "continue" to avoid that. And we could also reset the delay.

        I'll make a patch that does this, please try it out and see if it can be
        improved.

        --
        Some of the well know MS-Windows errors:
        EHUH Unexpected error
        EUSER User error, not our fault!
        EGOD Horrible problem, god knows what has happened
        EERR Errornous error: nothing wrong

        /// Bram Moolenaar -- Bram@... -- 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_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
      Your message has been successfully submitted and would be delivered to recipients shortly.