cake-build / cake-build/cake

Migrate Cake.Tool from Autofac to Microsoft.Extensions.DependencyInjection

Open
#2,835 0 comments 0 reactions 0 assignees View on GitHub
Improvement Investigate
Dominant language
C#
Stars
4.2k
Forks
778
Avg merge
1h 15m
Merged PRs (30d)
19

Description

We're currently not using any advanced features of Autofac (to my knowledge), so we should investigate whether or not we can move to something more lightweight (perhaps the homebrewed DI container we use in `Cake.Frosting`?). I suspect we could reduce the load time for implicit bootstrapping by doing this.

Any investigation of this needs some kind of benchmarking to make sure we're not making it worse (or replace something without an improvement).

Contributor guide

Open the contributing guide

Research direction

Start by tracing Cake.Tool's implicit bootstrapping and comparing its Autofac usage with the homebrewed dependency-injection container in Cake.Frosting. Establish a benchmark for load time before changing the container, then verify that the migration provides an improvement without regressions.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
performance, tooling
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.