question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proj() slowing down with PROJ 7.2.1+

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
snowman2commented, Jan 27, 2022

Need PROJ 8.1+

0reactions
snowman2commented, Jan 27, 2022

3.3.0 should have this resolved.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found