cryptg icon indicating copy to clipboard operation
cryptg copied to clipboard

allow threads

Open cogyair opened this issue 2 years ago • 2 comments

hi can't you use allow_threads in these Rust functions? to allow usage of Multiple threads using multiple cores when used by python?

cogyair avatar Feb 25 '24 07:02 cogyair

Yes, it might be possible. Feel free to send a pull request, as I'm not too familiar with it.

Lonami avatar Feb 25 '24 12:02 Lonami

I am also not a rust developer but you can see how to add it in this example: https://pyo3.rs/v0.20.2/parallelism

cogyair avatar Feb 25 '24 14:02 cogyair