From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-portage-dev+bounces-2152-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1L4GBp-0002qX-8A
	for garchives@archives.gentoo.org; Sun, 23 Nov 2008 14:43:57 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id F2CBDE036E;
	Sun, 23 Nov 2008 14:43:57 +0000 (UTC)
Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177])
	by pigeon.gentoo.org (Postfix) with ESMTP id A03B2E036E
	for <gentoo-portage-dev@lists.gentoo.org>; Sun, 23 Nov 2008 14:43:57 +0000 (UTC)
Received: by wa-out-1112.google.com with SMTP id v33so823213wah.2
        for <gentoo-portage-dev@lists.gentoo.org>; Sun, 23 Nov 2008 06:43:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to
         :subject:in-reply-to:mime-version:content-type:references;
        bh=Jpdj2LsXtKkKx+C06ZkVEDPsoD5+qHHUaxelFcUTNko=;
        b=b2SIxb4y15pmhM90S7jfvdqInv46LWunURT3Na2FoQznY1TNt5Ui8R4TlUkKfGOPZg
         Tm826soMcv4mOaSJqoCY7XuMDwG9PmffZBkICxhedgtVhMgGqnrJXJ58Y0wp3K/BpEIH
         eQSvi/Llq5mh1YPrxS//T1FFHwukgxoadytDQ=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:in-reply-to:mime-version
         :content-type:references;
        b=TGWlNnZ/rZVOQi2c7Vk9Kqr+3VzJ/HLQgF+4+cyVIghfcQaDlaj1cSSbK7Vke50v+J
         XGghjIS7q9Vccr86Cg8h85Y9PzTaL027OIhQOyW5m7a5hWpTttOC26GYjqR17zgqVSSb
         r9NHPVvWxdn6lbF1az32jrQjpXpu5Lyz3jpQI=
Received: by 10.115.18.1 with SMTP id v1mr1403759wai.175.1227451434883;
        Sun, 23 Nov 2008 06:43:54 -0800 (PST)
Received: by 10.114.130.8 with HTTP; Sun, 23 Nov 2008 06:43:54 -0800 (PST)
Message-ID: <5a8c638a0811230643g63ebba1bkf6c7c4b7d6cc497a@mail.gmail.com>
Date: Sun, 23 Nov 2008 09:43:54 -0500
From: "Emma Strubell" <emma.strubell@gmail.com>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] search functionality in emerge
In-Reply-To: <1227450820.27501.0.camel@localhost>
Precedence: bulk
List-Post: <mailto:gentoo-portage-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-portage-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-portage-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-portage-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-portage-dev.gentoo.org>
X-BeenThere: gentoo-portage-dev@lists.gentoo.org
Reply-to: gentoo-portage-dev@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_80842_6145778.1227451434881"
References: <5a8c638a0811230417r5bcf912fka14a18edc9c711b6@mail.gmail.com>
	 <cea53e3c0811230601n1ce1fa3ex7af88d1f2cf99d0c@mail.gmail.com>
	 <1227450820.27501.0.camel@localhost>
X-Archives-Salt: 2b70b425-cb5e-4c21-9b0f-300f2fc70f6c
X-Archives-Hash: 957040557b341b02f29fc7afe7b0a16b

------=_Part_80842_6145778.1227451434881
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Thanks for the replies! I know there are a couple programs out there that
basically already do what I'm looking to do... Unfortunately I wasn't aware
of these pre-existing utilities until after I submitted my project proposal
to my professor. So, I'm looking to implement a better search myself.
Preferably by editing the existing portage code, not writing a separate
program. So if anyone can offer any help regarding the actual implementatio=
n
of search in portage, I would greatly appreciate it!

Or, if anyone has an idea for a more productive/useful project I could work
on relating to portage (about the same difficulty, preferably at least a
little bit data structure related), please, let me know! Thanks again guys,

Emma

On Sun, Nov 23, 2008 at 9:33 AM, Pacho Ramos <
pacho@condmat1.ciencias.uniovi.es> wrote:

> El dom, 23-11-2008 a las 16:01 +0200, tvali escribi=F3:
> > Try esearch.
> >
> > emerge esearch
> > esearch ...
> >
> > 2008/11/23 Emma Strubell <emma.strubell@gmail.com>
> >         Hi everyone. My name is Emma, and I am completely new to this
> >         list. I've been using Gentoo since 2004, including Portage of
> >         course, and before I say anything else I'd like to say thanks
> >         to everyone for such a kickass package management system!!
> >
> >         Anyway, for my final project in my Data Structures &
> >         Algorithms class this semester, I would like to modify the
> >         search functionality in emerge. Something I've always noticed
> >         about 'emerge -s' or '-S' is that, in general, it takes a very
> >         long time to perform the searches. (Although, lately it does
> >         seem to be running faster, specifically on my laptop as
> >         opposed to my desktop. Strangely, though, it seems that when I
> >         do a simple 'emerge -av whatever' on my laptop it takes a very
> >         long time for emerge to find the package and/or determine the
> >         dependecies -  whatever it's doing behind that spinner. I can
> >         definitely go into more detail about this if anyone's
> >         interested. It's really been puzzling me!) So, as my final
> >         project I've proposed to improve the time it takes to perform
> >         a search using emerge. My professor suggested that I look into
> >         implementing indexing.
> >
> >         However, I've started looking at the code, and I must admit
> >         I'm pretty overwhelmed! I don't know where to start. I was
> >         wondering if anyone on here could give me a quick overview of
> >         how the search function currently works, an idea as to what
> >         could be modified or implemented in order to improve the
> >         running time of this code, or any tip really as to where I
> >         should start or what I should start looking at. I'd really
> >         appreciate any help or advice!!
> >
> >         Thanks a lot, and keep on making my Debian-using professor
> >         jealous :]
> >         Emma
> >
> >
> >
> > --
> > tvali
> >
> > Kuskilt foorumist: http://www.cooltests.com - kui inglise keelt oskad.
> > Muide, =FCle 120 oled v=E4ga tark, =FCle 140 oled geenius, mingi 170 ol=
ed ju
> > mingi t=E4ica pea nagu pr=FCgikast...
>
> I use eix:
> emerge eix
>
> ;-)
>
>
>

------=_Part_80842_6145778.1227451434881
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Thanks for the replies! I know there are a couple programs out there
that basically already do what I&#39;m looking to do... Unfortunately I
wasn&#39;t aware of these pre-existing utilities until after I submitted my
project proposal to my professor. So, I&#39;m looking to implement a better
search myself. Preferably by editing the existing portage code, not
writing a separate program. So if anyone can offer any help regarding
the actual implementation of search in portage, I would greatly
appreciate it!<br>
<br>
Or, if anyone has an idea for a more productive/useful project I could
work on relating to portage (about the same difficulty, preferably at
least a little bit data structure related), please, let me know! Thanks
again guys,<br>
<br>
Emma<br><br><div class=3D"gmail_quote">On Sun, Nov 23, 2008 at 9:33 AM, Pac=
ho Ramos <span dir=3D"ltr">&lt;<a href=3D"mailto:pacho@condmat1.ciencias.un=
iovi.es">pacho@condmat1.ciencias.uniovi.es</a>&gt;</span> wrote:<br><blockq=
uote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 20=
4); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
El dom, 23-11-2008 a las 16:01 +0200, tvali escribi=F3:<br>
<div><div></div><div class=3D"Wj3C7c">&gt; Try esearch.<br>
&gt;<br>
&gt; emerge esearch<br>
&gt; esearch ...<br>
&gt;<br>
&gt; 2008/11/23 Emma Strubell &lt;<a href=3D"mailto:emma.strubell@gmail.com=
">emma.strubell@gmail.com</a>&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Hi everyone. My name is Emma, and I am com=
pletely new to this<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; list. I&#39;ve been using Gentoo since 200=
4, including Portage of<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; course, and before I say anything else I&#=
39;d like to say thanks<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; to everyone for such a kickass package man=
agement system!!<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Anyway, for my final project in my Data St=
ructures &amp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Algorithms class this semester, I would li=
ke to modify the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; search functionality in emerge. Something =
I&#39;ve always noticed<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; about &#39;emerge -s&#39; or &#39;-S&#39; =
is that, in general, it takes a very<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; long time to perform the searches. (Althou=
gh, lately it does<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; seem to be running faster, specifically on=
 my laptop as<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; opposed to my desktop. Strangely, though, =
it seems that when I<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; do a simple &#39;emerge -av whatever&#39; =
on my laptop it takes a very<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; long time for emerge to find the package a=
nd/or determine the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; dependecies - &nbsp;whatever it&#39;s doin=
g behind that spinner. I can<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; definitely go into more detail about this =
if anyone&#39;s<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; interested. It&#39;s really been puzzling =
me!) So, as my final<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; project I&#39;ve proposed to improve the t=
ime it takes to perform<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; a search using emerge. My professor sugges=
ted that I look into<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; implementing indexing.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; However, I&#39;ve started looking at the c=
ode, and I must admit<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; I&#39;m pretty overwhelmed! I don&#39;t kn=
ow where to start. I was<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; wondering if anyone on here could give me =
a quick overview of<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; how the search function currently works, a=
n idea as to what<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; could be modified or implemented in order =
to improve the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; running time of this code, or any tip real=
ly as to where I<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; should start or what I should start lookin=
g at. I&#39;d really<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; appreciate any help or advice!!<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Thanks a lot, and keep on making my Debian=
-using professor<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; jealous :]<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Emma<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; tvali<br>
&gt;<br>
&gt; Kuskilt foorumist: <a href=3D"http://www.cooltests.com" target=3D"_bla=
nk">http://www.cooltests.com</a> - kui inglise keelt oskad.<br>
&gt; Muide, =FCle 120 oled v=E4ga tark, =FCle 140 oled geenius, mingi 170 o=
led ju<br>
&gt; mingi t=E4ica pea nagu pr=FCgikast...<br>
<br>
</div></div>I use eix:<br>
emerge eix<br>
<br>
;-)<br>
<br>
<br>
</blockquote></div><br>

------=_Part_80842_6145778.1227451434881--