Yegappan Lakshmanan wrote:

> On Thu, Jun 2, 2016 at 9:53 AM, Bram Moolenaar <[email protected]> wrote:
> >
> > Ramel Eshed wrote:
> >
> >> Hi All,
> >>
> >> Thanks to Bram and his recent work on channels, I have a preliminary
> >> version of an asynchronous grep plugin which lets you work with the
> >> available results while grep is still running. I would like to take
> >> advantage of this relatively short script to raise some issues and
> >> thoughts I have. The plugin can be found at
> >> https://github.com/ramele/agrep.
> >>
> >> My original idea was to use the quickfix list and add each match to it
> >> from the out callback. I had some issues with it, so temporarily (I
> >> hope..) I’m using my own window to display the results (“agrep
> >> window”). This is the default now and it should demonstrate what this
> >> plugin should do eventually. In order to reproduce the quickfix
> >> issues, you'll need to tell agrep to use quickfix list instead of
> >> agrep window (:let qgrep_use_qf=1). You can install the plugin as is
> >> or load it with $vim -u NONE -N -S <path to agrep.vim>
> >
> > Several of the problems have been fixed.  Especially appending to the
> > quickfix list should now be much faster.
> >
> > Let us know if you still encounter problems.
> >
> 
> The problem with adding large number of entries to a quickfix list is not
> fixed yet. I am attaching a test script to illustrate the problem. Source the
> script and run "call Measure_Caddexpr_Time()".  You will see that it
> takes around 2 minutes to add the entries.
> 
> The patch I sent earlier address this problem.

Yes, but I wanted to use another solution: add qf_last.
I'm doing that now, the time goes down from 150 seconds to 2 seconds.

-- 
Those who live by the sword get shot by those who don't.

 /// 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    ///

-- 
-- 
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.

Raspunde prin e-mail lui