polyBoundaryMesh::whichPatch should use binary search, not linear
whichPatch does a linear search over all patches. Almost all meshes have the patches in order so a binary search could be faster for larger numbers of patches.
whichPatch does a linear search over all patches. Almost all meshes have the patches in order so a binary search could be faster for larger numbers of patches.