Maybe you could have a look at the function weartear.wear(player). You have two loops over the roster and call twice find_entities. I can already see the game freezing every update in my large factory with more than 1000 assemblers. If you also add furnace-like buildings or solar panels, the freeze would become infeasible long. But I really want to play with this mod :)
Maybe you could only update a fixed amount of buildings per tick event, at the cost that some building need more time to age because they are not no longer updated in every function call.