Fix #warnings taking exponential time to compute

*sigh*
20 iterations takes about 10 seconds to run on my laptop, 100 would probably be over a day.