harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Shipilev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5718) [classlib][luni][performance] j.u.IdentityHashMap ariphmetic improvements
Date Fri, 11 Apr 2008 21:18:04 GMT

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

Aleksey Shipilev updated HARMONY-5718:

    Attachment: cl-identityhashmap-rc1.patch


Proof-of-concept patch, dirty and not optimal. 
Even though, gives:
 1.4x speedup on ThreadLocalBench on r646000
 2.1x speedup on ThreadLocalBench on r646000 with HARMONY-5713 onboard

> [classlib][luni][performance] j.u.IdentityHashMap ariphmetic improvements
> -------------------------------------------------------------------------
>                 Key: HARMONY-5718
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5718
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: Classlib
>            Reporter: Aleksey Shipilev
>         Attachments: cl-identityhashmap-rc1.patch
> Profiling and disassembly shows that much of the time on MT/ThreadLocalBench is spent
on % and / operations in java.util.IdentityHashMap.(findIndex|getModuloHash). The dividers
though are 2^k, so we can replace them with mask and shift 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