[JAXP-61] Perf. optimization for QName.equals(...) Created: 17/Mar/10  Updated: 18/Mar/10  Resolved: 18/Mar/10

Status: Resolved
Project: jaxp
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Improvement Priority: Major
Reporter: dmpetersson Assignee: Joe Wang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: All

Issuezilla Id: 61


Current implementation of QName.equals(...) is correct but can be made faster by:
1) comparing objectToTest with this

2) changing the order of the compare of namespace and localpart. Since the
localpart of a FQ-name changes more frequently then the namespace we can gain
performance by changing this order.

Comment by Joe Wang [ 17/Mar/10 ]

Patch is provided in issue 62.

Comment by Joe Wang [ 18/Mar/10 ]

Patch applied to both impls in the API and Xerces package. This change is now
in JAXP 1.4 on java.net.

Thanks again for your contribution!

Generated at Sun Apr 26 12:34:41 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.