Nice video, this comes in handy as I was indeed asking myself what use cases warrant reaching to PyO3. I am wondering though, if we convert the call `out_dict.get(w, 0)` to a "dummy" `if w in out_dict` won't it be faster? Something I also find missing here in the video is the memory and CPU (cores) usage. Not that I think Python would do better there, but it would be interesting to check.
That was very cool.
Perf_counter() is more accurate for measuring performance btw.
Thanks! I’ve started using it rather than time(). Thanks for the feedback.
@@ekbphd3200 Ah, it's just one of those "good practice" things devs tell other devs that probably doesn't change very much! :)
That's a really cool project! Thanks for bringing it to our attention!
No, no, thank you!
This was great, thanks! Had no idea this was available. Going to implement it into my python ebook reader
You're welcome! Best of luck!
Nice video, this comes in handy as I was indeed asking myself what use cases warrant reaching to PyO3. I am wondering though, if we convert the call `out_dict.get(w, 0)` to a "dummy" `if w in out_dict` won't it be faster? Something I also find missing here in the video is the memory and CPU (cores) usage. Not that I think Python would do better there, but it would be interesting to check.
Great ideas! I’ll try these ideas in a future video.
Nice video, the speed boost from Rust is almost twice. Can you do polars and pandas performance comparison?
Thanks! Yeah, Rust wins again. Ah, interesting idea. I'll have to try that comparison at some point in the future.
I dont think 2x performance speedup is worth handling two languages