db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dyre Tjeldvoll (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2050) Manipulating CachedItems could be more efficient
Date Wed, 08 Nov 2006 10:48:51 GMT
     [ http://issues.apache.org/jira/browse/DERBY-2050?page=all ]

Dyre Tjeldvoll updated DERBY-2050:

    Attachment: derby-2050.diff

Seems like this change was possibly more controversial than I thought, but I'm attaching a
patch anyway. Maybe those who are interested can look at the patch. Personally I found it
very enlightening to compare the bytecode (using javap) generated for bitfield access with
that generated for access to booleans .

> 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:
>            Reporter: Dyre Tjeldvoll
>            Priority: Trivial
>             Fix For:
>         Attachments: derby-2050.diff, derby-2050.stat
> 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


View raw message