I know it\'s a StackOverflow sin to not create a reproducible example, but I\'m not sure it\'s necessary in this. The following nested loop takes 40 minutes to run. There are ~6