Update Handle - Avoid Branching in OnUpdate loop #148
Labels
effort-medium
Standard - 2 to 4 hours
priority-high
Good candidate to bump to the top of your queue next time you need a task.
type-chore
Clean-up and optimization
Update the iteration in
UpdateHandle.UpdateSource_OnUpdate
to avoid branching.Currently there are disposed checks in the loop to guard against scenarios where the completion of a
CallAfterHandle
causes other handles or the mainUpdateHandle
to be disposed. This works but branching in such a hot loop to protected against edge cases is an unecessary performance penalty.Consider breaking the OnUpdate iteration up into two phases.
CallAfterHandle
instanceThe text was updated successfully, but these errors were encountered: