[jboss-jira] [JBoss JIRA] Created: (JBCACHE-1214) Can the cache be backed by LinkedHashSet instead of HashSet
Carl Shelbourne (JIRA)
jira-events at lists.jboss.org
Fri Nov 9 10:31:34 EST 2007
Can the cache be backed by LinkedHashSet instead of HashSet
-----------------------------------------------------------
Key: JBCACHE-1214
URL: http://jira.jboss.com/jira/browse/JBCACHE-1214
Project: JBoss Cache
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Environment: RFC
Reporter: Carl Shelbourne
Assigned To: Manik Surtani
Priority: Optional
Looking at the code it is noted that the cache is backed by a HashSet.
Would it be possible to change this so that it is backed by a LinkedHashSet.
There may or may not be performance benefits to this dependant on the usage. The primary reason for wanting it to be backed by a LinkedHashSet is the guaranteed ordering of the elements when iterated over. Having this guarantee would facilitate implementations of say a TableModel, but would make other iterations more predictable too.
--
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