Skip to content

Feature request: Do not generate $Init calls for libraries without INIT procedures for the sake of postponed loading #854

@Serggio

Description

@Serggio

X# generates a hidden method in the main executable project which calls $Init methods from all the referenced assemblies (even if they lack INIT procedures written by programmer) and thus forcing JIT to load them all immediately at the start of application, while it's natural for .Net to load libraries only when they are really needed.
What is proposed to do: if there are no INIT procedures manually written by a programmer, then compiler should skip generation of this early $Init call for this assembly so that it gets loaded only when it is really needed.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions