Proj() slowing down with PROJ 7.2.1+
See original GitHub issueThe Proj()
function in pyproj 3.0.1 appears to be slower that its counterpart in version 3.0.0.
The following test script can be used to demonstrate this issue:
from pyproj import Proj
import time
test_crs = {"proj": "omerc",
"lat_0": 45.0,
"lonc": 45.0,
"k": 1,
"alpha": -45.0,
"gamma": 0.0,
"units": "m",
"ellps": "WGS84",
"no_defs": True,
}
n_runs = 100
t0 = time.time()
for i in range(n_runs):
Proj(test_crs, preserve_units=True)
t_exec = time.time()-t0
print(f"Execution time: {t_exec} secs")
The following console outputs were noted when running with different versions of the Pyproj library:
-
When using Version 3.0.1, the output was:
Execution time: 3.026028871536255 secs
-
When using version 3.0.0, the output was:
Execution time: 0.12688589096069336 secs
In this case, the Proj()
function in 3.0.0 Appears to be ~20x faster than its counterpart in 3.0.1.
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (11 by maintainers)
Top Results From Across the Web
PROJ 7.2.1 & PROJ-data 1.4 - OSGeo
The PROJ release includes updates to the database and a number of bug fixes. See the detailed release notes below. The PROJ-data package...
Read more >PROJ coordinate transformation software library - GitHub
Set more precise error code for parsing errors in proj_create() (#3037) ... 2021-01-01 proj-7.2.1.tar.gz ... “d” - Down.
Read more >proj 6.2.1 is very slow with sqlite 3.7.17-8 on RHEL 7 #1718
I've discovered that Proj 6.2.1 (packaged by yum.postgresql.org) runs very slow on Red Hat Enterprise 7. For example: echo "0 0" | time ......
Read more >apt get - Cannot install proj 7.2.0 - Stack Overflow
https://pyproj4.github.io/pyproj/stable/installation.html. If you install pip>=19.0 you won't need to install PROJ, it should install the ...
Read more >Fix List for Rational Synergy - IBM
PM99217, R#45348, Classic Client crashes when object in working project with active ... Rational Synergy 7.2.1 MSSCCI integration function SccDiff() fails.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Need PROJ 8.1+
3.3.0 should have this resolved.