Make WeakReferenceMessenger broadcasting 0-alloc! #40
Labels
mvvm-toolkit 🧰
Issues/PRs for the MVVM Toolkit
optimization ☄
Performance or memory usage improvements
Needs #34 first, as we'll be using
DependentHandle
.There are a number of performance/memory usage optimizations I have planned for
WeakReferenceMessenger
:DependentHandle
and a custom table to achieve 0-alloc enumerationUnsafe.As<T>
usage to alias delegate types and also improve performance when invoking callbacks (by adding a fast path with explicit guarded devirtualization when invoking callbacks mapping toIRecipient<TMessage>
directly, as opposed to having an additional delegate stub with closure).Dictionary<TKey, TValue>
to theDictionarySlim<TKey, TValue>
forkThe text was updated successfully, but these errors were encountered: