[StructureLab] runReaction extremely expensive
-
The runReaction call of labs takes an extreme amount of CPU to run. It currently costs 0.55 CPU. According to the tooltip it should be near 0.2 CPU:
http://i.imgur.com/Vks3vFS.png
When 31 rooms are running reactions this tends to add up quite a bit. Could you look into this?
After extensive debugging it seems to be related to this line of code being hit 3 times.
-
@ link to source code with bug report!