On Tue, Jul 31, 2012 at 06:35:00PM +0000, Bruce Furber wrote:
>    I never used projects.
>    If you do not change time stamps on existing files the  indexing will be
>    incremental.

Yepp, but on a per project base. If there are no projects, all files are
handled like belonging to one big "virtual" repo.

>    I suspect it would require more memory because the single index is larger

At least in theory it should use less memory, because with a single repo
there is only one thread, which combs the source root for new files to
index ... See [1]

>    but I doubt it would run longer.

Depends on the indexing machine[s]. If it is a single core, it should be
slightly faster (less I/O contention, thread switching overhead). 

If one uses several cores or/and machines, it should be much faster
because several projects are indexed concurrently (per default
2 * (cores+1)) - see [2], [3].

However, this of course depends on the amount changed as well as IOPs of
your storage provides. If all projects are on the same disk, spinning rust
may limit the speedup. If on several disks, one may try to circumvent
I/O bottlenecks by explicitly specifying the project pathes @CLI (and
thus the execution order to a certain degree) - see [4], [5].
IMHO it doesn't make sense to implement automagically filesystem based
thread exec as long as Java 1.6 compatibility is required. With 1.7 it
should be easy ...

Have fun,
jel.

[1]
http://src.iws.cs.ovgu.de/source/xref/opengrok-jel/src/org/opensolaris/opengrok/index/IndexDatabase.java#792
[2]
http://src.iws.cs.ovgu.de/source/xref/opengrok-jel/src/org/opensolaris/opengrok/index/Indexer.java#745
[3]
http://src.iws.cs.ovgu.de/source/xref/opengrok-jel/src/org/opensolaris/opengrok/index/IndexDatabase.java#137
[4]
http://src.iws.cs.ovgu.de/source/xref/opengrok-jel/src/org/opensolaris/opengrok/index/Indexer.java#454
[5]
http://src.iws.cs.ovgu.de/source/xref/opengrok-jel/src/org/opensolaris/opengrok/index/Indexer.java#777
-- 
Otto-von-Guericke University     http://www.cs.uni-magdeburg.de/
Department of Computer Science   Geb. 29 R 027, Universitaetsplatz 2
39106 Magdeburg, Germany         Tel: +49 391 67 12768
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss

Reply via email to