Does Rust work quicker than Python on native Python data structures?

Publié le: 18 juillet 2024
sur la chaîne: EKB PhD
645
31

I use the PyO3 Rust crate to have Rust loop over a native-Python PyList data structure and insert into a native-Python PyDict. Is it faster than Python? That's the question I answer in this video.

Here's the PyO3 docs on native-Python data types in Rust:
https://pyo3.rs/v0.22.2/conversions/t...

Here's my Rust code (thanks to my son Seth for help with it):
https://github.com/ekbrown/scripting_...

Here's my Python script:
https://github.com/ekbrown/scripting_...

#rustlang #pythonprogramming #corpuslinguistics


Sur cette page du site, vous pouvez voir la vidéo en ligne Does Rust work quicker than Python on native Python data structures? durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur EKB PhD 18 juillet 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 645 fois et il a aimé 31 téléspectateurs. Bon visionnage!