Any chance of releasing future_into_py_futlike
?
#433
Replies: 1 comment 2 replies
-
So, the issue with In terms of general functionality, that function won't make anything super-special, it returns a Lines 221 to 271 in a6cfc2f as it depends only on a glue class Lines 260 to 276 in a6cfc2f and the performance difference shouldn't be so noticeable in 99% of use cases. Given the amount of lines and still the hard dependency on tokio, I'm not sure still wether a crate would be a good idea for that.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Was wondering if you would release
future_into_py_futlike
as a crate.I've been using
pyo3-async-runtimes
to return async functions from Rust, and I found it extremely slow. About 20x slower than running my GIL-less Rust function within a Python thread and usingwrap_futures
on it. I haven't tested it yet but I assumefuture_into_py_futlike
wouldn't have such an issue.Beta Was this translation helpful? Give feedback.
All reactions