From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Inverted index to accelerate guix package search Date: Wed, 15 Jan 2020 15:25:17 +0100 Message-ID: References: <87a76r68u6.fsf@ambrevar.xyz> <87muaqnmod.fsf@ambrevar.xyz> <87h80y12k3.fsf@roquette.mug.biscuolo.net> <877e1tyaut.fsf@ambrevar.xyz> <875zhdw0a0.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40939) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irjbu-0001K1-RF for guix-devel@gnu.org; Wed, 15 Jan 2020 09:25:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irjbt-0005ad-Np for guix-devel@gnu.org; Wed, 15 Jan 2020 09:25:30 -0500 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]:43081) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1irjbt-0005Zv-JE for guix-devel@gnu.org; Wed, 15 Jan 2020 09:25:29 -0500 Received: by mail-qt1-x82e.google.com with SMTP id d18so15864224qtj.10 for ; Wed, 15 Jan 2020 06:25:29 -0800 (PST) In-Reply-To: <875zhdw0a0.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix Devel Hi Pierre, On Wed, 15 Jan 2020 at 10:12, Pierre Neidhardt wrote: > > What about the "build time" size? Other said, all one needs to build > > to have xapian, i.e., the size of the full bag: starting from the > > bootstrap seed and having Guix+Xapian (vs. Guix alone). > > As shows with guix graph? > > This yields a small graph: > --8<---------------cut here---------------start------------->8--- > guix graph --type=bag-emerged xapian | dot -Tpdf > dag.pdf > --8<---------------cut here---------------end--------------->8--- > > This yields a big graph: > --8<---------------cut here---------------start------------->8--- > guix graph --type=bag xapian | dot -Tpdf > dag.pdf > --8<---------------cut here---------------end--------------->8--- > > I don't know how it compares to other packages. I do not know neither. But I guess that Xapian does not add extra dependencies then itself. I do not know if this filter is correct. --8<---------------cut here---------------start------------->8--- guixdot=/tmp/guix.dot guix graph --type=bag guix > $guixdot for what in `guix graph --type=bag xapian | grep '@' | cut -d'[' -f1`; do grep '@' $guixdot | grep $what > /dev/null if [ $? -eq 0 ] then echo "OK -- $what" else echo "KO -- $what" fi done --8<---------------cut here---------------end--------------->8--- Roughly, it compares the '/gnu/store' hashes of the nodes. And all the nodes of Xapian are already in the graph of Guix, except Xapian itself. So there is not extra cost (really low). I mean if I understand well. Well, guile-xapian bindings is the blocking point. Any taker? ;-) All the best, simon