Skip to content

Conversation

cincuranet
Copy link
Contributor

@cincuranet cincuranet commented Oct 1, 2025

Backport of #36895.

Description

Change to support NativeAOT in EF Core 9 (experimental feature) introduced new code path that resulted in new instances of value converters on primitive collections being recreated on every entity created and hence recompiling the expression on every call.

Customer impact

Significant performance degradation when fetching primitive collections data with value converters from database.

How found

Customer reported.

Regression

Yes, from 8.

Testing

Manual testing.

Risk

Low. Feature flag added.

@cincuranet cincuranet force-pushed the converter-new-fix-10 branch from fe5c4ca to cfbd22d Compare October 2, 2025 09:05
@SamMonoRT
Copy link
Member

@cincuranet - this needs to be sent to Tactics for approval.

@cincuranet
Copy link
Contributor Author

@SamMonoRT Done already (couple of hours ago).

@cincuranet
Copy link
Contributor Author

Approved in Tactics via email.

@cincuranet cincuranet merged commit 9f21708 into dotnet:release/10.0 Oct 3, 2025
7 checks passed
@cincuranet cincuranet deleted the converter-new-fix-10 branch October 3, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants