/DistIL

Post-build IL optimizer and intermediate representation for .NET programs

Primary LanguageC#MIT LicenseMIT

DistIL

GitHub Nuget

Post-build IL optimizer and intermediate representation for .NET programs (experimental).

Notable Features

See Optimization Passes for a detailed list of optimizations passes available.

Usage

Preview versions of the optimizer can be used by installing the DistIL.OptimizerTask NuGet package. It contains a MSBuild task which will automatically invoke the optimizer on the output project assembly when building in Release mode.

By default, only methods and classes annotated with [Optimize] will be transformed, in order to reduce the chances of things breaking unexpectedly. This can be changed by setting the DistilAllMethods project property to true.