Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Adelie - fast replacement for equery
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
millimille
n00b
n00b


Joined: 30 Apr 2006
Posts: 6

PostPosted: Sun Apr 30, 2006 2:17 am    Post subject: Adelie - fast replacement for equery Reply with quote

Hi!

Fquery (formerly Adelie) is a fast replacement for equery that I've been developing for a while. It's written in Haskell and you will need GHC to compile it.

Please test it out and tell me what you think.

The latest version is 0.2 and is available at:
http://home.exetel.com.au/tjaden/fquery/

edit: correct url

David


Last edited by millimille on Sun May 21, 2006 3:34 am; edited 2 times in total
Back to top
View user's profile Send private message
omp
Retired Dev
Retired Dev


Joined: 10 Sep 2005
Posts: 1018
Location: Glendale, California

PostPosted: Sun Apr 30, 2006 2:50 am    Post subject: Re: Adelie - fast replacement for equery Reply with quote

millimille wrote:
The latest version is 20060430 and is available at:
http://web.exetel.com.au/tjaden/adelie/
That link is broken. :?


Also, this should belong in Unsupported Software. :P
_________________
meow.
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Sun Apr 30, 2006 2:52 am    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
Back to top
View user's profile Send private message
millimille
n00b
n00b


Joined: 30 Apr 2006
Posts: 6

PostPosted: Sun Apr 30, 2006 10:50 am    Post subject: Reply with quote

I forgot to mention that I've assumed the location of two directories:

1) portage tree is in /usr/portage
2) installed package database is in /var/db/pkg

The first is needed to find use.desc and use.local.desc, and maybe some other things.

I know the first can be changed in make.conf, but I don't know about the second.

Anyway, if anyone needs to change either of them, the variables are in Adelie/Portage.hs.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sun Apr 30, 2006 11:17 am    Post subject: Reply with quote

You can use portageq to get these directories.
_________________
KDE
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 850
Location: PL

PostPosted: Sun Apr 30, 2006 4:45 pm    Post subject: Reply with quote

wow this thing is way fast. i tested first by running adelie first, then equery to give equery the possible caching benefit.

listing files from package
time adelie f ffmpeg
real 0m0.015s
user 0m0.002s
sys 0m0.005s

time equery f ffmpeg
real 0m0.837s
user 0m0.427s
sys 0m0.040s
---------------------------
time adelie f qt
real 0m0.261s
user 0m0.051s
sys 0m0.011s

time equery f qt
real 0m0.903s
user 0m0.532s
sys 0m0.060s
----------------------------
calculating deps (i can't find an equivalent in equery - there is an option for whole deptree but adelie just lists direct deps) is insanely fast.
time adelie dd mplayer
real 0m0.010s
user 0m0.008s
sys 0m0.001s
----------------------------
looking for packages installed with specific use flag.note that equery is checking the same package right after adelie, so there might be some caching involved in the favor of equery.
Code:
yoshi@yOSHi ~ $ time adelie h kde
Packages installed with kde USE flag
app-cdr/k3b-0.12.15
app-editors/kile-1.9
kde-base/kdeprint-3.5.2
media-sound/amarok-1.4_beta3-r2
www-client/opera-8.52
x11-wm/fluxbox-0.9.15.1

real    0m0.076s
user    0m0.035s
sys     0m0.018s
yoshi@yOSHi ~ $ time equery h kde
[ Searching for USE flag kde in all categories among: ]
 * installed packages
[I--] [ ~] app-editors/kile-1.9 (0)
[I--] [ ~] x11-wm/fluxbox-0.9.15.1 (0)
[I--] [  ] www-client/opera-8.52 (0)
[I--] [ ~] media-sound/amarok-1.4_beta3-r2 (0)
[I--] [ ~] app-cdr/k3b-0.12.15 (0)
[I--] [ ~] kde-base/kdeprint-3.5.2 (3.5)

real    0m1.256s
user    0m0.804s
sys     0m0.098s

----------------------------------
looking for a package containing a specific file
Code:
yoshi@yOSHi ~ $ time adelie b /usr/bin/X
x11-base/xorg-server-1.0.2-r3 (/usr/bin/X -> Xorg)

real    0m2.780s
user    0m1.824s
sys     0m0.046s
yoshi@yOSHi ~ $ time equery b /usr/bin/X
[ Searching for file(s) /usr/bin/X in *... ]
x11-base/xorg-server-1.0.2-r3 (/usr/bin/X -> Xorg)

real    0m5.141s
user    0m4.940s
sys     0m0.126s


my system is on xfs partition, and i use cdb caching with portage 2.1_pre10 if that matters.
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
millimille
n00b
n00b


Joined: 30 Apr 2006
Posts: 6

PostPosted: Sun May 21, 2006 3:32 am    Post subject: Reply with quote

Just released v0.2. Changes include:

  • proper changelog output
  • don't abort if CONTENTS, USE, etc, files are missing
  • --no-colour option
  • long commands

Also, it will automatically set the portageTree and portageDB directories at compile time (uses /usr/bin/portageq).

Finally, there's been a name change to just plain Fquery.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum