[jdom-interest] Fast Factory

Jason Hunter jhunter at acm.org
Mon May 26 10:40:48 PDT 2003


> Throwing $0.02 in on this discussion, I have had a look around the 
> Verifier thing (spent a week looking in to performance improvements in 
> JDOM).

Cool, did you find anything you want to report?

> Some notes on the issues I discovered:
> 1. The Factory that creates JDOM objects is not in the same package as 
> the JDOM objects themselves. This is a "headache" for making changes.

Yes, this is one reason we were thinking of moving the factory into 
org.jdom.  The other is that might just be a better logical place.

> 2. The Verifier is called from all over the place in the JDOM objects. 
> Methods that are called at Factory time are for the most part 
> indistinguishable from other contexts.

Yep.  I wonder what "aspect-oriented programming" would bring to the 
verification process.

> 4. Checking to see whether Verification should be called is potentially 
> as slow as doing the verification itself.

Yep, at least unless you are willing to use a static rather than any 
per-thread ability.

> 6. I tried using a "Fast Factory" approach, and I found that in reality 
> (without making radical structural changes to the JDOM API), that the 
> performance improvements were marginal.

Brad found the same with FastFactory.

-jh-




More information about the jdom-interest mailing list