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 - use precompiled XPath queries (where it makes sense)
Summary: use precompiled XPath queries (where it makes sense)
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 102410
  Show dependency tree
 
Reported: 2007-04-25 00:55 UTC by Viktor Lapitski
Modified: 2007-09-19 00:07 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.