this post was submitted on 20 Dec 2025
66 points (97.1% liked)

Rust

7596 readers
16 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] fruitcantfly@programming.dev 2 points 2 days ago (1 children)

The way to really optimize Python code, is by reducing the amount of Python code in your program, since Python itself is dog slow. Instead, you want to offload as much of the work as possible to modules written in compiled languages. So completely switching to Rust, or another compiled language, is simply taking that strategy to its logical conclusion

[–] Shanmugha@lemmy.world 1 points 2 days ago (1 children)

Now that should be weighted against the amount of work the rewrite is, among other factors. But anyway the article does not give any specifics

[–] fruitcantfly@programming.dev 1 points 1 day ago (1 children)

That's the case of for any optimization work, really

[–] Shanmugha@lemmy.world 1 points 1 day ago

Hence my question above