[jboss-jira] [JBoss JIRA] Closed: (JBCACHE-874) Use performant ordered collections in TransactionEntry
Brian Stansberry (JIRA)
jira-events at jboss.com
Mon Dec 11 15:43:38 EST 2006
[ http://jira.jboss.com/jira/browse/JBCACHE-874?page=all ]
Brian Stansberry closed JBCACHE-874.
------------------------------------
Resolution: Done
> Use performant ordered 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