Skip to content

Add cache of MethodWrapper instances and cache to NativeCall for .Net Standard 2.0. Should improve performance. #553

Closed
@dmitriyse

Description

@dmitriyse

Environment

  • Pythonnet version: Any
  • Python version: Any
  • Operating System: Any

Details

  • Describe what you were trying to get done.

    • new MethodWrapper instanced are created multiple times for the same .Net delegates.
    • also Marshal.GetDelegateForFunctionPointer can be cached to improve performance on .NetStandard
      2.0
    • with those two caches it's possible to gracefully overcome .net restriction described here
      https://github.com/dotnet/coreclr/issues/14362

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions