Message ID | 20200327162654.18785-1-arunisaac@systemreboot.net |
---|---|
Headers | show |
Hi Arun, Arun Isaac <arunisaac@systemreboot.net> skribis: > This is v3 of my attempt to make guix search faster. In this version, I have > abandoned use of xapian. Instead I build a cache of the metadata of all > packages in a profile hook. Then, I use that cache to search and display > search results. This way, package guile modules are not loaded during guix > search. > > Speedup is around 2x. Both measurements below are with a warm cache. Sorry for the delay! Just to say that I like the approach, and I’ll take a closer look once the release is out… Thank you! Ludo’.
Hi, Arun Isaac <arunisaac@systemreboot.net> skribis: > Speedup is around 2x. Both measurements below are with a warm cache. > > $ time guix search inkscape > > real 0m1.722s > user 0m1.776s > sys 0m0.097s > > $ time /tmp/test/bin/guix search inkscape > > real 0m0.749s > user 0m0.770s > sys 0m0.020s > > This patchset does not affect the search API nor does it improve the relevance > of search results. If there is interest in this approach, I'll complete this > patchset properly. But, in the long run, I do think we should aim to get > xapian or the like for guix search. WDYT? > > Unfortunately, generate-package-metadata-cache takes 43 seconds to build the > cache on my relatively slow computer. Performance should be better on other > people's machines. 43 seconds is a lot. How do these 43 seconds compare to current ‘guix search’ on your computer? (Both do roughly the same thing.) Thanks, Ludo’.