Make SequentialGuidValueGenerator
non-allocating
#30610
Labels
area-perf
area-sqlserver
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
community-contribution
customer-reported
type-enhancement
Milestone
The current implementation of
SequentialGuidValueGenerator.Next()
allocates some heap memory due tobyte[]
usages:efcore/src/EFCore/ValueGeneration/SequentialGuidValueGenerator.cs
Lines 34 to 54 in bdd9846
We can rewrite this to a
Span
based version to avoid any allocations like this:Comparison:
I can open a PR once this has been reviewed and approved.
The text was updated successfully, but these errors were encountered: