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-2493) Use unsynchronized collections in BackingStoreHashtable
Date Thu, 29 Mar 2007 08:31:25 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Knut Anders Hatlen updated DERBY-2493:

    Attachment: derby-2493-assert.stat

Attaching patch (derby-2493-assert) which creates a new assert method JDBC.assertUnorderedResultSet()
which is similar to assertFullResultSet() only that it doesn't care about the order of the
result set. Also made two test cases (one in DistinctTest and one in ResultSetsFromPreparedStatementTest)
use the new method to prevent them from failing when the Hashtable in BackingStoreHashtable
is replaced with a HashMap.

> Use unsynchronized collections in BackingStoreHashtable
> -------------------------------------------------------
>                 Key: DERBY-2493
>                 URL: https://issues.apache.org/jira/browse/DERBY-2493
>             Project: Derby
>          Issue Type: Improvement
>          Components: Performance, Store
>    Affects Versions:
>            Reporter: Knut Anders Hatlen
>         Assigned To: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: derby-2493-assert.diff, derby-2493-assert.stat
> BackingStoreHashtable uses a Vector and a Hashtable, but doesn't need the synchronization
provided by these classes (I think). Replacing them with ArrayList and HashMap could improve
performance for some kinds of operations.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message