db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2149) Replace Vectors and Hashtables with ArrayLists and HashMaps in RAMTransaction
Date Fri, 15 Dec 2006 13:53:21 GMT
     [ http://issues.apache.org/jira/browse/DERBY-2149?page=all ]

Knut Anders Hatlen updated DERBY-2149:
--------------------------------------

    Attachment: derby-2149-1a.diff

The attached patch replaces four Vectors and one Hashtable in RAMTransaction with ArrayLists
and a HashMap. According to the discussion on derby-dev, it is safe to assume single-threaded
access in RAMTransaction. Please let me know if there are cases where this assumption is incorrect.
Derbyall and the JUnit tests ran cleanly with the patch applied.

> Replace Vectors and Hashtables with ArrayLists and HashMaps in RAMTransaction
> -----------------------------------------------------------------------------
>
>                 Key: DERBY-2149
>                 URL: http://issues.apache.org/jira/browse/DERBY-2149
>             Project: Derby
>          Issue Type: Improvement
>          Components: Store, Performance
>    Affects Versions: 10.3.0.0
>            Reporter: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: derby-2149-1a.diff
>
>
> In org.apache.derby.impl.store.access.RAMTransaction, synchronized collection objects
could be replaced with unsynchronized ones. See discussion here: http://www.nabble.com/Use-of-synchronized-containers-in-engine-code-tf2754469.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message