Skip to content

2.1.1

Choose a tag to compare

@Adiakys Adiakys released this 01 Nov 12:00
b81c6b5

Faster dispatch, smaller library

No API or behavior change: upgrade from 2.1.0 by bumping the package version.

  • Requests, streams and notifications are dispatched through generic wrappers built once per message type, without reflection on the hot path.
  • About 20% less code in the runtime library.
2.1.0 2.1.1 MediatR 12.5
Send 457 ns, 360 B 97 ns, 96 B 92 ns, 200 B
Send, 3 behaviors 992 ns, 1104 B 225 ns, 632 B —
Publish, 1 handler 379 ns, 656 B 196 ns, 344 B 145 ns, 288 B

Measured with BenchmarkDotNet on .NET 10; details and the comparison with Mediator are on the Performance page.

What's Changed

  • Dispatch without reflection, simpler runtime, benchmarks vs MediatR and Mediator by @Adiakys in #17
  • Version 2.1.1 by @Adiakys in #18

Full Changelog: 2.1.0...2.1.1