Why are Rust apps (even those that run in terminal) so much more snappy and blazing fast compared to apps developed in Python and other languages? I always thought Python was at least on par with Rust for simple UI apps such as terminal file managers but yazi vs ranger proved me wrong
I used to use ranger (https://github.com/ranger/ranger) as my terminal file manager for a long time. But the app is really slow. I always thought this is just how terminal apps are like, and not much can be done about that. Ranger is written in Python.
Then I discovered yazi (https://github.com/sxyazi/yazi) which is similar to ranger but it's blazing fast and snappy. It's written in Rust.
The functionality of these apps is pretty similar, but the snappyness of yazi yet again reminds me how fast and rock solid Rust programs could be. I just don't understand why that's the case though—it's not like these apps do heavy number crunching or systems programming; they essentially provide a skin around terminal utilities such as ls and cd. Why is yazi so so faster then?