Fun with Rust (not spinning this time)

Jan 18, 2018 19:42

Rust... took me while to install. I decided I did not like curl | sh, so I created fresh VM for that. That took a while, and in the end I ran curl | sh, anyway. I coded weather forecast core in Rust... And I feel like every second line needs explicit typecast. Not nice, but ok; result will be fast, right? Rust: 6m45 seconds, python less then 1m7 ( Read more... )

Leave a comment

Comments 2

anonymous January 19 2018, 11:04:36 UTC
Maybe you already knew, but did you try compiling with `cargo build --release`?
The (default) debug build is often 10 times slower than the release one.

Reply

pavelmachek January 20 2018, 21:56:21 UTC
I already knew. And yes, I seen big speed difference, more like 40x. It surprised me.

Reply


Leave a comment

Up