You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Bessonov (Jira)" <ji...@apache.org> on 2025/05/06 06:45:00 UTC

[jira] [Commented] (IGNITE-25284) GridUnsafe#wrapPointer should always use explicit method handles

    [ https://issues.apache.org/jira/browse/IGNITE-25284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17949636#comment-17949636 ] 

Ivan Bessonov commented on IGNITE-25284:
----------------------------------------

Benchmark results. Underwhelming, but it got better.
h4. main, Java 11:

 
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  106.766 ± 12.305  ops/us {code}
h4. main, Java 17:

 

 
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  131.503 ± 10.664  ops/us {code}
h4. main, Java 21:

 

 
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  126.148 ± 15.574  ops/us {code}
h4. branch, Java 11:

 

 
{code:java}
Benchmark                                   Mode  Cnt    Score   Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  135.922 ± 0.660  ops/us{code}
h4. branch, Java 17:

 

 
{code:java}
Benchmark                                   Mode  Cnt    Score   Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  161.761 ± 4.122  ops/us {code}
h4. branch, Java 21:

 

 
{code:java}
Benchmark                                   Mode  Cnt    Score    Error   Units
WrapPointerBenchmark.benchmarkWrapPointer  thrpt   10  167.184 ± 10.658  ops/us {code}
 

 

> GridUnsafe#wrapPointer should always use explicit method handles
> ----------------------------------------------------------------
>
>                 Key: IGNITE-25284
>                 URL: https://issues.apache.org/jira/browse/IGNITE-25284
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Ivan Bessonov
>            Assignee: Ivan Bessonov
>            Priority: Major
>              Labels: ignite-3
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> If method handle is static and final, JIT will be able to optimize it. Current code doesn't allow for such optimizations, making "wrapPointer" slow



--
This message was sent by Atlassian Jira
(v8.20.10#820010)