BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Slow Startup Time and Entity Materialization Issues Affects Entity Framework 6

Slow Startup Time and Entity Materialization Issues Affects Entity Framework 6

This item in japanese

Bookmarks

Several developers reported performance issues which affected their projects during the development phase while working with the recently released Entity Framework 6. The first reported issue was about the startup time issue when the debugger is attached to the project which causes when the metadata collections use Lazy<T> in a way that triggers numerous invocations of Debugger.NotifyOfCrossThreadDependency() at model creation time. As of the time of this writing, this problem has been resolved by the product team.

Frans Bouma, Lead developer, LLBLGen Pro reported slow entity materialization in Entity Framework 6.0.1. During benchmarking, Frans ran a .NET profiling using dotTrace which spends 0.02% of its time in the GetEnumerator to fetch the actual data and the rest in the MoveNext over the result.

Few developers also reported startup performance issues without attaching the debugger. For instance, a developer had to wait for about 10-15 seconds soon after pressing F5.

You will automatically get the latest version if you install Entity Framework 6 from NuGet. However, if you make use of Visual Studio 2013 project template with Entity Framework 6 then you have to update to the latest patch by running Update-Package EntityFramework in Package Manager Console.

According to official sources, a new update will be released soon that addresses the performance issues and some other high priority bugs including new issues which are being reported by developers on a daily basis.

Rate this Article

Adoption
Style

BT