[jboss-jira] [JBoss JIRA] Created: (JBCACHE-1322) Optimise Fqn class for performance in equals() and hashcode()

Manik Surtani (JIRA) jira-events at lists.jboss.org
Tue Apr 8 06:34:54 EDT 2008


Optimise Fqn class for performance in equals() and hashcode()
-------------------------------------------------------------

                 Key: JBCACHE-1322
                 URL: http://jira.jboss.com/jira/browse/JBCACHE-1322
             Project: JBoss Cache
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
            Reporter: Manik Surtani
         Assigned To: Manik Surtani
             Fix For: 2.2.0.GA


A part of this will be to mark all constructors as @Deprecated and make them all private (or protected?) in 3.0.0.  Provide adequate factory methods that would create Fqns.  

The main benefit is that we can intern Fqns and not have to construct them each time.

Other improvements are a link to the parent and the current "name", rather than the whole list of elements.  Hashcodes and equals can be calculated quickly this way, and caching hashcodes/equality tests based on identity become a possibility.

Other suggestions in design forum thread.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list