minor performance improvements in *size_similarity