On Wednesday, October 11, 2017 at 1:04:50 AM UTC+3, Ken Takata wrote:
> Hi Ramel,
>
> 2017/10/11 Wed 6:08:33 UTC+9 Ramel Eshed wrote:
> > On Saturday, September 30, 2017 at 5:00:38 PM UTC+3, Bram Moolenaar wrote:
> > > Ramel Eshed wrote:
> > >
> > > > Running the following script in the gui (:terminal job.sh) takes more
> > > > than 10 seconds. During that time the screen in not updated and vim is
> > > > not responsive. Doing the same in terminal-vim is much faster, but the
> > > > screen is updated only when the job is finished.
> > > >
> > > > running this script using job_start(), for comparison, is very fast
> > > > and seamless:
> > > > call job_start(['/bin/sh', '-c', 'job.sh'], {'out_io': 'buffer',
> > > > 'out_buf': 1})
> > > >
> > > > $ cat job.sh
> > > > #!/bin/bash
> > > > for i in `seq 1 20000`;
> > > > do
> > > > echo "$i"
> > > > done
> > > >
> > > > I'm running the latest Vim (1161) on Ubuntu.
> > >
> > > Using job_start() is always going to be faster, since with a terminal
> > > window everything goes through the virtual terminal. That's quite a bit
> > > of overhead. Partly because it supports colors and other attributes.
> > >
> > > There is a todo item to make screen updating for the terminal more
> > > efficient, not sure how much it helps in this case, it's mostly to skip
> > > redrawing lines that didn't change.
> > >
> > > --
> > > hundred-and-one symptoms of being an internet addict:
> > > 231. You sprinkle Carpet Fresh on the rugs and put your vacuum cleaner
> > > in the front doorway permanently so it always looks like you are
> > > actually attempting to do something about that mess that has amassed
> > > since you discovered the Internet.
> > >
> > > /// Bram Moolenaar -- [email protected] -- 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
> > > ///
> >
> > Hi Bram,
> >
> > I'm trying to understand why running my example script is so slow on gvim's
> > terminal compared to gnome-terminal and terminal-vim:
> >
> > gnome-terminal:
> > real 0m0.196s
> > user 0m0.156s
> > sys 0m0.036s
> >
> > vim:
> > real 0m0.515s
> > user 0m0.132s
> > sys 0m0.024s
> >
> > gvim:
> > real 0m7.953s
> > user 0m0.120s
> > sys 0m0.036s
> >
> > I tried to run with profiling but I'm not sure I understand the results..
> > (see the attached vim and gvim gprof files).
> > Is there any problem with profiling in the GUI? -because I see the
> > following comment in the Makefile:
> >
> > # PROFILING - Uncomment the next two lines to do profiling with gcc and
> > gprof.
> > # Might not work with GUI or Perl.
> >
> > Can you learn something from the attached results?
>
> Does this solve the problem?
> https://github.com/vim/vim/pull/2010#issuecomment-334371470
>
> I tried this only on Windows, so not sure this applies to Linux.
>
> Regards,
> Ken Takata
Hi Ken,
This patch works very well in vim - it is faster now, and I don't see the
screen update issues that I had before.
For gvim it is better, but still takes 4-5 seconds and the cursor is flickering
at the bottom line of the terminal window.
Thanks,
Ramel
--
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.