optimize priority queue comparison