W
W
WisdomButcher2020-09-06 21:08:04
C++ / C#
WisdomButcher, 2020-09-06 21:08:04

What overhead is involved in calling a DLL function via DllImport in C# .Net Core?

The function call does not go directly, but through some drivers, as they explained to me. Please explain in more detail what steps the library function call consists of, and how they affect the speed, in contrast to calling this function in the language in which it was written.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-09-06
@WisdomButcher

Simple answer, almost no effect. Described extensively here.
https://docs.microsoft.com/en-us/previous-versions...
Again, you need to understand that pinvoke is an extreme case, either get inside the system, or pull a very heavy function. Overhead costs in this case can be ignored.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question