Boost Performance By Sorting With Span of T

Sdílet
Vložit
  • čas přidán 8. 06. 2024
  • Dapper handles the mapping of object properties, but if your aggregate has child collections, you have to manually do that. When those collections get large, there is an opportunity to improve performance! See what the benchmarks prove about using Linq where extensions, dictionaries, and sorted spans.
    00:00 Introduction
    00:34 Populating the Aggregate
    01:03 Linq with Where Extension
    02:12 Using GroupBy with a Dictionary
    03:33 Establishing A Baseline with Span
    04:03 Sorting the Chlid Collections
    04:39 Sorting with a Span
    05:56 Using the Span Slice Method
    06:39 Benchmark Memory Data
    06:40 Marker 19
    Sample Code:
    github.com/JZuerlein/ListVsDi...
    Blog:
    betterwithcode.com/
    LinkedIn:
    / jeff-zuerlein-2aa67b7
  • Věda a technologie

Komentáře • 3