You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/05 08:06:20 UTC

[jira] [Commented] (IGNITE-1694) .Net: More efficient way to call native methods.

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

ASF GitHub Bot commented on IGNITE-1694:
----------------------------------------

Github user ptupitsyn closed the pull request at:

    https://github.com/apache/ignite/pull/220


> .Net: More efficient way to call native methods.
> ------------------------------------------------
>
>                 Key: IGNITE-1694
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1694
>             Project: Ignite
>          Issue Type: Task
>          Components: platforms
>    Affects Versions: ignite-1.4
>            Reporter: Vladimir Ozerov
>            Assignee: Vladimir Ozerov
>            Priority: Critical
>             Fix For: 1.5.0.final
>
>
> Currently we invoke native platform using "Marshal.GetDelegateForFunctionPointer". 
> This is the least efficient way to call external code. What can be done to improve it:
> 1) Add [SuppressUnmanagedCodeSecurity] attribute.
> 2) Use P/Invoke instead. We do not use it now because we unpack native library in runtime into some temp folder, while PInvoke searches for libraries in predefined file system places. Need to evaluate whether we can switch back to P/Invoke somehow.
> See http://ybeernet.blogspot.ru/2011/03/techniques-of-calling-unmanaged-code.html for more info.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)