dotnet / dotnet/efcore

Improve perf of complex type property change tracking

Open
#36,041 0 comments 0 reactions 0 assignees View on GitHub
area-change-tracking area-complex-types area-perf
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Currently assignment and most retrieval is done by going through the entity, e.g. `blog.Posts[0].Title = "New title"`. However, this could be avoided or shortened if there are no value types in the complex property chain, all properties are mapped to backing fields or all properties return a `ref` value.

Also, add micro-benchmarks to track this and related cases.

Related to #31493

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.