dotnet / efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
https://docs.microsoft.com/ef/
MIT License
13.48k stars 3.13k forks source link

Recycle ADO.NET objects in update pipeline #15546

Open roji opened 5 years ago

roji commented 5 years ago

There's a potential to reduce allocations by internally recycling DbParameter, DbCommand, and DbConnection instances - this should be a relatively low hanging fruit.

Am creating this issue to remember this possible avenue, but we should first do a proper memory profiling session and identify the biggest offenders first (ADO.NET may not be high on the list).

AndriySvyryd commented 8 months ago

Related to #11574