DragonFly BSD
DragonFly kernel List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs cross reference tool


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Wed, 9 Feb 2005 04:19:07 +0100

On Wednesday, 9. February 2005 04:04, Max Laier wrote:
> If you don't know it yet:
> http://fxr.watson.org/
>
> The search features from there are quite handy, didn't find anything like
> it in your tool yet.

yes, i know. i might link to rwatson's site, but i don't intend to do the same 
thing here: fxr indexes on identifiers, I index on files and revisions.

> Also, a quick check of the pf source (what else) didn't turn up the cool
> feature you were talking about (i.e. filling in the $OpenBSD versions)
> http://oly.corecode.ath.cx/~corecode/cgi-bin/crosscgi.py?cmd=detail&sourcei
>d=34780
> http://oly.corecode.ath.cx/~corecode/cgi-bin/crosscgi.py?cmd=detail&sourcei
>d=83740

yes, that's expected :/ openbsd and netbsd don't include the complete path in 
the tags, so my tool can only guess. and if there is more than one file in 
the corresponding repo with the same name, it will opt for manual fixing. 
there is already code in the cgi for that, though i'm not yet sure on how to 
cope with authorisation for changes.

> It's really fast, though!  How long does an index run take? On what
> hardware? How much space does it need for metadata?  Does it index
> incremental?

yes, i explicitly optimized it for speed. took some time :)
an index run for all repos takes less than one day i think, but i'd have to 
try again. the hardware is my desktop here in my room, a duron 1200 with 
384MB ram, and in fact it's at the moment updating the index (in parallel!), 
which is (after i cleaned out tagname references, whose tracking basically 
destroys all update/insert performance):
-rw-r--r--   1 corecode  wheel   672692224 Feb  9 04:14 cvscrosscheck.db

oh and, the changesets are created on fly, from aggregation to checkout.

i'm sure it could still be tuned, but i'm quite happy with the speed now. i 
had to write an own, fast rcs file parser, tho (and accompaning python 
module)


once i got my local changes into the repo again, i'll follow up with the 
source, if there is interest. oh and of course i'll post to the other 
projects' mailing lists, just wanted to make a first test here.

cheers
  simon

-- 
/"\
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News

Attachment: pgp00010.pgp
Description: PGP signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]