Skip to content

Performance regression in V9.1 #1480

Description

@cjlotz

Describe the Bug

When updating Autofac from v8.4 to v9.1 we have noticed a considerable degrade in the startup performance for our back-end .NET API server. Startup has increased from 22 to 34 seconds. The only change made to the code base were the following updates to Autofac in the Directory.Packages.Props as shown below:

Image

We've noticed the efforts in #1478 to try and claw back some performance due to the recent changes to support AnyKey. Is there anything (besides downgrading) that we can do to get the performance back to v8.4 levels? We don't require AnyKey support and we want to stick with the latest Autofac updates.

Will it be possible to make AnyKey support an optional feature for those who do not require it and don't won't to incur the performance penalty for a feature they will not use? Or does isolating/opting out of the AnyKey feature cut too deep? Any other suggestions

Steps to Reproduce

  • Update Autofac to the latest v9.1 release
  • Startup .NET back-end API server
  • Notice considerable slowdown in startup performance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions