From: Michael Andreen Date: Mon, 29 Oct 2007 13:20:47 +0000 (+0000) Subject: Small optimization in sort() X-Git-Tag: v0.1~9 X-Git-Url: https://ruin.nu/git/index.pl?a=commitdiff_plain;h=34293060b5be57f6e2ea620ad4c3ff0f94e1d305;hp=34293060b5be57f6e2ea620ad4c3ff0f94e1d305;p=germs.git Small optimization in sort() safeActions() is guaranteed to only return actions that reduces the inversion distance by one, so we don't have to compute the inversion distance at each step. ---