A developer who looked over the pull request recommended that I change the TriComparator to operate on floats instead of doubles- should be slightly faster, and since the TriComparator is the critical path in this change, every little bit helps.