[jboss-jira] [JBoss JIRA] Created: (JBCACHE-874) Use performant order collections in TransactionEntry
Brian Stansberry (JIRA)
jira-events at jboss.com
Wed Nov 22 23:28:41 EST 2006
Use performant order collections in TransactionEntry
----------------------------------------------------
Key: JBCACHE-874
URL: http://jira.jboss.com/jira/browse/JBCACHE-874
Project: JBoss Cache
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: Brian Stansberry
Assigned To: Brian Stansberry
Fix For: 1.4.1.GA, 2.0.0.ALPHA2
If multiple locks are associated with a TransactionEntry, it's highly non-performant, since for each addition the class does a contains() check on a LinkedList. We should replace the LinkedList fields with LinkedHashSet. With that, the contains test can be removed all together, as a 2nd add of the same object to a LinkedHashSet has no impact on the collection ordering.
See forum post for profiling info on the current impl.
--
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