-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PERF: Store internal PROJ error messages in Cython
This moves the internal PROJ error message to Cython for faster get/clear from the C side. The Python side can still access it, it is just no longer stored as a class attribute. This provides a performance benefit primarily within the Transformer functions.
- Loading branch information
Showing
6 changed files
with
90 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
include "proj.pxi" | ||
|
||
|
||
cpdef str get_proj_error() | ||
cpdef void clear_proj_error() | ||
cdef PJ_CONTEXT* PYPROJ_GLOBAL_CONTEXT | ||
cdef PJ_CONTEXT* pyproj_context_create() except * | ||
cdef void pyproj_context_destroy(PJ_CONTEXT* context) except * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.