Microsoft announced a significant improvement in the performance of Entity Framework 5
Posting by itwriter published on comment (7) 1542 people read the original article link [favorites]»
According to the introduction on the blog of the ADO. Net team, EF applications of this version are used.ProgramThe performance improvement is partly due to the automatic compilation of the LINQ to entities query. The automatic compilation function has always been part of the EF framework. It can be used only when developers call compiledquery. compile. EF 5 will now automatically process this step: When a query is run for the first time, it will be compiled and cached, so that subsequent requests can be completely recompiled.
EF 4 uses the compiled query cache for esql (Embedded SQL) queries, and EF 5 extends this function to the LINQ to entity query. Once more than 800 compiled queries are buffered, a collectionAlgorithmThe cache will take effect and be cleared once every minute. The object is removed from the cache based on the lfru principle (most recently used.
Using compiled LINQ to SQL queries can also improve performance. The ADO. Net team mentioned that in their internal tests, some modifications to the query parameter evaluation method have resulted in a 600% performance improvement.
Although. net delivery and EF release are independent of each other. They still share some core libraries, including system. data. entity. DLL, system. data. entity. design. DLL and system. web. entity. DLL. The advantage is that developers who use EF 4.0 can experience performance improvement as long as they upgrade to. NET Framework 4.5.
Some new features in EF5 (such as enumeration support and Spatial Data Types) depend on the features in. NET Framework 4.5, so there is not much to expect to use them before. Net 4.5 is released. In addition, Microsoft announced the release of ef4.3 at the beginning of this month.
Microsoft reports significant performance improvements in Entity Framework 5
7
0
From: infoq