I'll be off CVS till end of week, but here is a clue to you for further
optimisations. Actually, the parsing of java source files is approx. 5
times faster than javadoc as long as only class level tags are accessed
(because the whole file isn't being parsed unless a method is queried).
On the other hand, if the whole file is parsed, it's slower.
However, this will happen if there is at least one occurrance of
forAllClasses with a nested forAllMethods. I'm afraid there isn't much
more we can do with the speed of the parser. It's already quite
optimised.
Incremental builds should be a lot faster, since the timestamp checking
decides whether we bother to parse at all. This is a big change from
javadoc, because javadoc always parsed the files, no matter what.
Currently, the timestamp checking requires the class to be parsed. This
can be avoided by implementing ProxyClass.lastModified() like this:
{
return XJavaDoc.getInstance().getSourceFile(qualifiedName
()).lastModified();
}
Basically we want to avoid ProxyClass.resolve() to be called in as many
places as possible, because this is where the parsing starts.
Maybe someone knows about some profiling tools/techniques we can use to
identify the bottlenecks better?
Aslak
----- Original Message -----
From: "Ara Abrahamian" <[EMAIL PROTECTED]>
Date: Tuesday, March 19, 2002 6:38 am
Subject: [Xdoclet-devel] refactoring branch
> So, now we should make sure the results are exactly the same. Run
> Vincent's tests on it and do some other comparisons/blabla. Next comes
> some optimizations. The performance is not that great actually. There
> should be a problem somewhere because webdoclet is lightening
> fast, also
> utilobject/etc but some other subtasks such as entitybmp or
> deploymentdescriptor are not that fast. Also when there's no need for
> regenerating something the performance is not what I expected.
>
> Ara.
>
> > > Log:
> > > well, ejbdoclet/webdoclet builds and compiles now
>
>
>
> _______________________________________________
> Xdoclet-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
>
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel