On 10/23/2014 02:22 AM, Zac Medico wrote:
> In the future, we might decide to rewrite the search class so that it
> processes the index as a stream, which will allow individual search
> results to be displayed as soon as they are located [1]. This rewrite
> will require a new index API.
> 
> So, considering that we probably want a new index API in the future, we
> might save some unnecessary effort and stick with the
> special-purpose/minimalistic IndexedPortdb/Vardb adapters for now.
> 
> [1] https://bugs.gentoo.org/show_bug.cgi?id=412471

I have a stream-based back end working in this branch:

  https://github.com/zmedico/portage/commits/bug_525718_stream

Now all that's left to do is to convert IndexedPortdb to expose an
iter_cp_all method, and to fix the search class to iterate over
iter_cp_all and display results incrementally. Once that's done, I'll
think about exposing useful pieces as public APIs.
-- 
Thanks,
Zac

Reply via email to