I like the mod's idea but with the way its trigger is designed to process every damage in the whole game the idle load with a bunch of Space Age platforms (shooting asteroids as they travel) is quite significant. I took a liberty on trying to redesign it in a way that will be more performant. Not saying that I found an ideal solution but the idle load on my system dropped from about 0.150ms to something like 0.010ms. I also played a bit with the idea of using the remaining lifetime counter as an ammo metric. This way you can tell the number of remaining shots just by the number of thousand seconds of lifetime that the game shortens to quite convenient "13.5 k s" for example. I don't want to steal your downloads so if you'll like the proposed changes, by all accounts you can just use my code as it is on the linked modpage or use it as an example and I won't make my standalone fork public. I made it for my personal use mostly.
https://mods.factorio.com/mod/combat-bot-booster-remake