t4nk3r4lyf: The old version of the mod used to update all machines, but since v0.2.0, the mod should not tank performance, since it only updates at most 40 machines per tick, no matter how big the factory is. Have you updated to the latest version?
bsdfhsbzxcbz: Great work. There is a small bug in your code, which shows up if an entity has been removed just before we perform the "run once". This is due to iterating by index into the table, which doesn't handle elements being removed from the table. I decided to use your idea of removing all signals in a single tick (but in a separate loop), and then not update until told otherwise. The update should be up shortly.