DllImport or LoadLibrary for best performance

后端 未结 4 1599
温柔的废话
温柔的废话 2020-12-30 12:09

I have external .DLL file with fast assembler code inside. What is the best way to call functions in this .DLL file to get best performance?

4条回答
  •  心在旅途
    2020-12-30 12:53

    The only way to answer this question is to time both options, a task which is trivially easy. Making performance predictions without timing is pointless.

    Since we don't have your code, only you can answer your question.

提交回复
热议问题