Skip to content

Speeds up some human loops

Rob Nelson requested to merge pull/5804/Iinventedgoingfast into Bleeding-Edge

Created by: clusterfack

Imagine: loop through ALL possible genes, only to loop through ALL active genes to see if we have them for each one. So thats already a possible genes * active genes loop for each mob.

Instead we loop through active genes only and grab the gene through an associative list. So loop of 54 * x is now a loop of x maximum.

Now dna_genes is an associative list if that isn't clear.

  1. Removes the is_active proc entirely
  2. Speeds the FUCK out of handle_mutations_and_radiation by extremely lowering looping

Merge request reports