h3-py
h3-py copied to clipboard
Remove Python exceptions from Cython code?
In #260, we raise Python exceptions. I wonder if we could rework the interface to avoid the Python exceptions (which are Python objects that could potentially slow down the Cython code).
Perhaps we could modify the Cython functions to return (actual_return_value, integer_error_code) tuples? (Tuples can be fully converted to C by Cython.)
This overlaps with https://github.com/uber/h3-py/issues/236 and https://github.com/uber/h3-py/issues/265.