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] Commented: (DERBY-2050) Manipulating CachedItems could be more efficient
Date Tue, 07 Nov 2006 15:56:50 GMT
    [ http://issues.apache.org/jira/browse/DERBY-2050?page=comments#action_12447836 ] 
            
Knut Anders Hatlen commented on DERBY-2050:
-------------------------------------------

I don't think this should affect memory usage much since the JVM seems to allocate multiples
of 8 bytes. I used DTrace to compare the object sizes for one class with 2 ints and one object
reference (like CachedItem), and one class with one int, six booleans and one object reference.
Both object types used 24 bytes.

> Manipulating CachedItems could be more efficient
> ------------------------------------------------
>
>                 Key: DERBY-2050
>                 URL: http://issues.apache.org/jira/browse/DERBY-2050
>             Project: Derby
>          Issue Type: Improvement
>          Components: Performance
>    Affects Versions: 10.2.1.6
>            Reporter: Dyre Tjeldvoll
>            Priority: Trivial
>             Fix For: 10.3.0.0
>
>
> CachedItem's state is currently recorded in bit fields of an integer variable. Changing
this to 6 boolean member variables reduces cpu usage. 

-- 
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