[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110325":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":35,"discoverSource":36},110325,"Cilica","hez2010\u002FCilica","hez2010","Post-build IL optimizer and intermediate representation for .NET programs","",null,"C#",170,6,3,2,0,9,53,1,52.34,"MIT License",false,"main",true,[26,27,28,29,30],"compiler","csharp","dotnet","hecktoberfest","optimizer","2026-11-18 15:14:20","2026-11-23 09:02:04","# Cilica\n![GitHub](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fhez2010\u002FCilica)\n[![Compiler CI](https:\u002F\u002Fgithub.com\u002Fhez2010\u002FCilica\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fhez2010\u002FCilica\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Cilica.OptimizerTask on NuGet](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fvpre\u002FCilica.OptimizerTask?label=Cilica.OptimizerTask)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FCilica.OptimizerTask)\n[![Cilica.Core on NuGet](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fvpre\u002FCilica.Core?label=Cilica.Core)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FCilica.Core)\n\nPost-build IL optimizer and intermediate representation for .NET programs (experimental).\n\nCilica is a continuation of [DistIL](https:\u002F\u002Fgithub.com\u002Fdubiousconst282\u002FDistIL).\n\nTry [Cilica Lab](https:\u002F\u002Fhez2010.github.io\u002FCilicaLab\u002F) in your browser to explore optimization passes, control-flow graphs, and generated code.\n\n# Notable Features\n- [SSA-based Intermediate Representation](docs\u002Fapi-walkthrough.md)\n- Linq Expansion\n- Loop Strength Reduction\n- Loop Vectorization\n- List Pre-sizing\n- Devirtualization\n- Method Inlining\n- Scalar Replacement\n\nSee [Optimization Passes](docs\u002Fopt-list.md) for a detailed list of optimizations passes available.\n\n```powershell\nCilica.Cli -i input\u002FMyLibrary.dll -o output\u002FMyLibrary.dll\n```\n\n# Usage\nThe `Cilica.OptimizerTask` NuGet package contains an MSBuild task which automatically invokes the optimizer on the output project assembly when building in _Release_ mode. It requires the .NET 10+. Install the preview package with:\n\n```shell\ndotnet add package Cilica.OptimizerTask --prerelease\n```\n\nBy default, only methods and classes annotated with `[Cilica.Attributes.Optimize]` will be transformed. This can be changed by setting the `CilicaAllMethods` project property to `true`:\n\n```xml\n\u003CCilicaAllMethods>true\u003C\u002FCilicaAllMethods>\n```\n\nSet `RunCilica` to enable or disable optimization explicitly, and use `CilicaExtraArgs` to pass additional CLI options.\n\nUse `--skip-module-initializers` to omit explicit module-initialization checks when the runtime initializes modules before use. `Cilica.OptimizerTask` enables this by default with `PublishAot=true`; set `CilicaSkipModuleInitializers=false` to override it.\n\nUse `--nativeaot-compat` when invoking the CLI before NativeAOT compilation. `Cilica.OptimizerTask` enables this automatically with `PublishAot=true`.\n\nThe optimizer task processes your main assembly by default. To include managed dependencies and framework assemblies in a self-contained build or publish, enable `CilicaAllAssemblies`:\n\n```xml\n\u003CSelfContained>true\u003C\u002FSelfContained>\n\u003CCilicaAllAssemblies>true\u003C\u002FCilicaAllAssemblies>\n```\n\nUnder this mode, assembly signatures and ReadyToRun code will be removed, and `CilicaAllMethods` will be set to `true`; set it to `false` to retain attribute filtering.\n\nThere's also a `Cilica.Core` package that exposes the optimizer and intermediate representation APIs for direct use.\n","Cilica 是一个面向 .NET 程序的构建后 IL 优化器与中间表示（IR）框架，用于在编译完成后对托管程序集进行静态分析与代码优化。它基于 SSA 形式 IR，支持循环强度削减、向量化、虚方法去虚拟化、方法内联、标量替换、列表预分配等优化，并提供 NuGet 集成的 MSBuild 任务，可无缝嵌入 Release 或 NativeAOT 构建流程。适用于追求运行时性能提升的 .NET 应用开发、AOT 编译预处理及底层 IL 分析研究场景。","2026-11-24 04:38:41","CREATED_QUERY"]