mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-22 06:56:31 +00:00
* Improves performance of 2 reagent operations (#84411) ## About The Pull Request 1. Removes **2 WHOLE** `update_total()` calls from `trans_to()`. This is the hottest proc in plumbing & in a large majority of other reagent operations so it's a big win. `add_reagent()` & `remove_reagent()` already calls `update_total()` for us so we don't need them. Its free performance!! 2. `remove_reagent()` only calls `update_total()` & `handle_reactions()` once when removing subtypes of a reagent compared to repeatedly calling these hot procs every iteration ## Changelog 🆑 code: Improves cpu performance of transferring & removing reagents /🆑 * Improves performance of 2 reagent operations --------- Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>