winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Utilize function pointers for interop

Open JeremyKuhne opened this issue 5 years ago • 1 comments

Function pointers provide better performance. Creating this issue to discuss utilizing them in Windows Forms interop.

Things we should consider / look at:

  • Win32 callbacks
  • High usage COM interfaces
  • ?

JeremyKuhne avatar Oct 19 '20 18:10 JeremyKuhne

Some Runtime changes:

https://github.com/dotnet/runtime/pull/43514 https://github.com/dotnet/runtime/pull/39752 https://github.com/dotnet/runtime/pull/39082

JeremyKuhne avatar Oct 19 '20 18:10 JeremyKuhne

@RussKie Should we close this issue because of #7445 or does this compliment it?

elachlan avatar Nov 07 '22 01:11 elachlan

Thank you for going through the backlog. If we're importing callbacks from CsWin32 then, I think, we can close it. If we still have manually created callbacks - then I think this may still be relevant.

I let @JeremyKuhne to make a call on this, since he's opened the issue.

RussKie avatar Nov 07 '22 02:11 RussKie

It is related to the other, but we should keep it open to attach known instances of this.

JeremyKuhne avatar Nov 07 '22 18:11 JeremyKuhne

We've been doing this now, no longer a need to track.

JeremyKuhne avatar Aug 16 '23 20:08 JeremyKuhne