Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance by avoiding loading the GMT library repeatedly #2930

Merged
merged 12 commits into from
Jan 2, 2024
Prev Previous commit
Next Next commit
[skip ci] Improve comments
  • Loading branch information
seisman committed Dec 29, 2023
commit 713b0e94c41db6a005c275d612c4af92c7906602
2 changes: 1 addition & 1 deletion pygmt/clib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
np.datetime64: "GMT_DATETIME",
}

# load the GMT library outside the Session class so it's loaded once.
# Load the GMT library outside the Session class to avoid repeating loading.
seisman marked this conversation as resolved.
Show resolved Hide resolved
_libgmt = load_libgmt()


Expand Down