[
http://jira.jboss.com/jira/browse/JBCACHE-1322?page=comments#action_12407526 ]
Manik Surtani commented on JBCACHE-1322:
----------------------------------------
For 2.2.0, I have just marked all public constructors as deprecated and have provided
factory methods instead.
From 3.0.0 we can remove the public constructors and work on
potentially interning Fqns after profiling a prototype for their usefulness and real gain
in performance.
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