Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Performance Improvement - Move Reflection calls to static initializer #15

@BrunoJuchli

Description

@BrunoJuchli

StaticProxy.Fody:

For generated classes and proxied-classes, all reflection calls should be moved to a static intializer and henceforth referenced in the called methods.

Otherwise each method call also induces one or multiple reflection calls.

If a *static constructor" is used for this task, this also requires removing "beforefieldinit" from class' attributes. See: http://csharpindepth.com/Articles/General/Beforefieldinit.aspx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions