From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5638A138825 for ; Sat, 1 Nov 2014 06:15:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34AC1E0924; Sat, 1 Nov 2014 06:15:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BCB80E0907 for ; Sat, 1 Nov 2014 06:15:28 +0000 (UTC) Received: from [192.168.1.7] (ip70-181-96-121.oc.oc.cox.net [70.181.96.121]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id D1D133402F9 for ; Sat, 1 Nov 2014 06:15:27 +0000 (UTC) Message-ID: <54547A7D.7070409@gentoo.org> Date: Fri, 31 Oct 2014 23:15:25 -0700 From: Zac Medico User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] Re: [PATCH] emerge --search: use description index References: <5441DE73.3090601@gentoo.org> <544201C4.5050106@gentoo.org> <54443249.1090901@gentoo.org> <20141023015515.26ca0c7e.dolsen@gentoo.org> <5448C8DA.8080009@gentoo.org> In-Reply-To: <5448C8DA.8080009@gentoo.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Archives-Salt: 38349b23-6d69-4c00-a563-a632ecfb7034 X-Archives-Hash: 81d35a809b0ce0c3e781894b4a3d4160 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