Conversation
|
Thanks, cool to see that it works well in C too. I still plan to use the Rust version, as I'm also interested in the easier maintainability and safety of it. The speed isn't too important to me at this point, since it's already so fast, we were benchmarking there to make sure it wasn't unreasonably slow. If you're able, try running the rust yourself so the timings are comparable, that would be interesting to see. |
That's understandable. I think once Rust matures a bit (3-5 years) it will be really useful in the Python ecosystem. I think the current instability of the Rust-Python workflows (with like PyO3) put it in a maintenance nightmare at this point. I wasn't able to run the Rust tests myself. I have cargo installed, and build tools with it frequently, but |
Came across this older PR: #438 which had no activity in quite some time. Thought the improved speed is a good idea, but I don't really know Rust, so I implemented the changes in C.
The benchmarks seem good:
Running on 2024 MacBook Pro M4 Pro
The Rust column is from the PR, as I wasn't actually able to get it to run locally.
I didn't add tests, because it seemed like this behavior is already covered.