James Turner

Results 208 comments of James Turner

I would like to work out a good/better solution for adding many entries at once without a large number of allocations while addressing the underlying performance problem before merging this...

Thanks for this! Was there any other useful information in their headers? Or just the encoding?

Is that screenshot of core utilization system wide or just the dotnet process?

I'm looking into it right now but I don't think the problem is `SaveChangesAsync`, it is the call to `AddRange` (at least in my own tests). A call to `AddRange`...

Here's the result of a quick benchmark I put together. At 100 entities it takes 0.3ms, at 1000 it takes 32ms. So for 10x the entities, it was getting 100x...

Added one more iteration, at 10000 entities it takes 3402ms. This is definitely the problem area. | Method | EntryCount | Mean | Error | StdDev | Allocated | |---------------...

One thing I'm experimenting with is, instead of using reflection, creating a delegate dynamically via expressions. That does improve performance quite a bit though the scaling is still pretty bad....

Managed to find an algorithmic improvement so I don't need to check the ID of every entry if the entry we're setting doesn't have an ID defined: | Method |...