Fix #warnings taking exponential time to compute

*sigh*