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? |
Answered by
maxbachmann
Mar 25, 2022
Replies: 1 comment
|
There are a couple of ways this can be done:
|
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.cdistinstead of callingpartial_ratiomultiple times