~/talk

The Mystery of Dynamic Assemblies

TalkinRussianat DotNext 2021 Piter · 2021-04-20..04-23· [dotnet]
links:none on file
links:none on file
slides:none on file

Investigates slow unit-test runs caused by dynamic mocking and test frameworks: profiling revealed Moq as a slow spot, but replacing it with hand-made stubs didn’t help. Demonstrates using a profiler to compare mock libraries (Moq, NSubstitute), test frameworks (NUnit, xUnit), Reflection.Emit dynamic type generation, and Castle.DynamicProxy to locate performance root causes in the CLR (clr.dll).

AI-written summary · about

  1. 0:00Introduction
  2. 1:14Slow unit tests
  3. 6:56Examining source code
  4. 11:14Mock vs Moq
  5. 15:10Switching to Moq
  6. 23:37Profiling slowest tests
  7. 27:13Dynamic types and reflection
  8. 31:29Creating dynamic types
  9. 35:59Performance comparison
  10. 39:10Testing dynamic type creation
  11. 42:15Multiple assemblies solution
  12. 47:21Updating Moq config
  13. 51:18Results and verification
  14. 53:25Investigation conclusions
  15. 55:10Debugging methodology
  16. 57:17Real project background
  17. 1:00:09Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.