Browse Source

[aspnetcore] List should not assume result size (#7920)

Sébastien Ros 2 years ago
parent
commit
57351d0371

+ 2 - 2
frameworks/CSharp/aspnetcore/PlatformBenchmarks/Data/Providers/RawDbNpgsql.cs

@@ -187,7 +187,7 @@ namespace PlatformBenchmarks
 
         public async Task<List<Fortune>> LoadFortunesRows()
         {
-            var result = new List<Fortune>(20);
+            var result = new List<Fortune>();
 
             using (var db = new NpgsqlConnection(_connectionString))
             {
@@ -262,4 +262,4 @@ namespace PlatformBenchmarks
     }
 }
 
-#endif
+#endif