Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
createFromCRSCodesWithIntermediates(): improve perf when no match
createFromCRSCodesWithIntermediates() runs a rather costly self-join. Only run it if the source and target CRS are the source/target of a coordinate operation. This helps for the performance of proj_create_crs_to_crs() when run on projected CRS for example that are extremely unlikely to be the source/target of an operation (except currently the Finish ones). For the EPSG:26915 to EPSG:3857 case of OSGeo/gdal#3470, this helps decreasing the time of proj_create_crs_to_crs() from 18 ms to 10 ms.
- Loading branch information