Open Shadowblitz16 opened 2 years ago
You can see for yourself in the disassembly.
This line:
(--directpinvoke:kernel32
)
makes all DllImports statically bound. They have the same overhead as an extern
DllImport in C (they go through a single jmp
instruction on x64).
Isn't DllImport slow? Would this even be viable for os dev?