This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 102411

Summary: use precompiled XPath queries (where it makes sense)
Product: uml Reporter: Viktor Lapitski <lvv>
Component: GeneralAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker CC: issues
Priority: P3 Keywords: PERFORMANCE
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 102410    

Description Viktor Lapitski 2007-04-25 00:55:37 UTC
this is placeholder for record purposes.  

Using precompiled XPath statements can, supposedly in cases where 
the query is executed frequently enough to provide a valid reason for 
a trade-off with increased, even when temporary, memory storage 
by precompiled query size amount, significantly improve performance 
time-wise (as well as possibly memory-wise by reducing memory thrashing). 
An experiment with replacing of simple query ("/XMI/XMI.content/UML:Project") 
by precompiled version (Dom4jXPath) of it in the very frequently executed
getProject() method in
uml/core/src/org/netbeans/modules/uml/core/metamodel/core/foundation/UMLXMLManip.java
brought about 20+% improvement alone on 10 minute long webreport.