[ 
https://issues.apache.org/jira/browse/ARTEMIS-5972?focusedWorklogId=1020273&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1020273
 ]

ASF GitHub Bot logged work on ARTEMIS-5972:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/May/26 14:47
            Start Date: 14/May/26 14:47
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #6444:
URL: https://github.com/apache/artemis/pull/6444#discussion_r3242159231


##########
pom.xml:
##########
@@ -74,6 +74,7 @@
       <module>artemis-lockmanager</module>
       <module>artemis-image</module>
       <module>artemis-image/examples</module>
+       <module>artemis-ffm</module>

Review Comment:
   @tabish121 we could add other libraries that are using ffm later. Mayank is 
doing some experimentation with ioUring... we could add that into this module 
if it gets any useful.
   
   Not that I foresee many other libraries in the future.. but what if we ever 
add more?
   
   I didn't want to use the word native  as native itself is a reserved name in 
java, and to not confuse with the current JNI implementation.





Issue Time Tracking
-------------------

    Worklog Id:     (was: 1020273)
    Time Spent: 50m  (was: 40m)

> Replace JNI with Panama Foreign Function & Memory (FFM) API for Journal 
> Native Layer
> ------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-5972
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5972
>             Project: Artemis
>          Issue Type: Improvement
>          Components: Native
>            Reporter: Mayank Kunwar
>            Assignee: Clebert Suconic
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Proposing a modernization of the artemis-journal module by leveraging the 
> Panama Foreign Function & Memory (FFM) API (introduced in JDK 22). This will 
> provide a high-performance alternative to the existing JNI-based native layer 
> for interacting with libaio.
>  
> ||Feature||Current JNI + libaio||Modernize Journal||
> |Call Type|Java -> JNI (C code) -> libaio |Java -> Panama FFM -> libaio|
> |Code Base|Java + C/C++ (Native Repo)|100% Pure Java|
> |I/O Mechanism |Asynchronous via libaio callbacks|Asynchronous via libaio 
> callbacks|
> |Efficiency|Higher overhead (JNI transitions)|Lower overhead (JIT optimized)|



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to