Importing functions into Cython with cimport #202
-
Good day! I am using your library in one of my projects that requires high computational speed and it is performing very well. However, I would like to parallelise some nested loops performing numerous calls to partial_ratio. I have translated my code into cython and wondering how I can import functions, such as rapidfuzz.fuzz.partial_ratio into my cython project with cimport? |
Beta Was this translation helpful? Give feedback.
Answered by
maxbachmann
Mar 25, 2022
Replies: 1 comment
-
There are a couple of ways this can be done:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YevgeniySimonov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are a couple of ways this can be done:
-> call e.g.
process.cdist
instead of callingpartial_ratio
multiple times