Browse Source
Upon investigating ender magnolia crashes i need to add lots of instrumentation in the "if (header.size > 0) {...}" block (between headers(...) and ProcessCommands(...)) for both safe and unsafe paths. The old way i need to add same instrumentation twice, always ending up maintaining only one path, and when i realize i need to test the other, i have to update/copy/move instrumentation between methods.
This new writing preserves exactly the same logic, but gathers both paths into a single one, and by no means should have performance impact.
And it's more elegant too. You're welcome ^^.
We must let the compiler do the hard work for us, right?
Feel free to blame!
Signed-off-by: xbzk <xbzk@eden-emu.dev>
xbzk-dma-pusher-step-redesign
committed by
crueter
1 changed files with 10 additions and 8 deletions
Loading…
Reference in new issue