]
Brian Stansberry updated JBCACHE-874:
-------------------------------------
Summary: Use performant ordered collections in TransactionEntry (was: Use performant
order collections in TransactionEntry)
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: