Closed syricium closed 3 years ago
yes, the part of the code responsible for creating the signature and the algorithm is blocking the code, too many actions are going on in the function. I'll sit down next week to rewrite the algorithm. :(
Alternatively, you can run the task in run_in_executor.
I did, but that didn't help, but that could actually somehow be my fault, as my run in executor seems to never be working
I will try to release the update as soon as possible if I can achieve a higher speed. But I'm afraid that it will be difficult to implement, since the process of creating the algorithm and signature is too long. Perhaps I will rewrite this for RUST.
@syricium, Better late than never, but it happened thanks to pyo3 and RUST. https://github.com/dotX12/shazamio-core
Fixed in 0.5.0. See comment: https://github.com/shazamio/ShazamIO/issues/76#issuecomment-1961610344
I've been using the recognize_song function for a while now, but only just found out, that it is blocking. Am I doing something wrong or is it not my fault?