flâneur — a map of the web's best reading

why rust so Fast? : r/rust

reddit.com · 6 words · saved by 1 readers

Hi, i noob and just looking around the Rust information. meanwhile i see the some result That Rust Performance is great than other noob language like Go(which i used Study) i know Rust get errors in compile time, so it makes performance better ? There are a lot of answers to this question, and of course a lot has to do with the skill of the programmer and their motivation to optimize for speed. Here's a very partial list of what the language provides: It uses LLVM to generate assembly code, which is a state of the art optimizer, comparable to best-in-class C and C++ compilers. It makes it easy to lay out data structures in a cache-efficient manner. See Why (most) High Level Languages are Slow for more detail on what this means and why it's important. Its type system lets you choose a pointer/reference strategy that does the least amount of work at runtime while still being safe. The default in Swift, for example, is atomic reference counting. If you're not sharing across threads, Rust

Reddit - Please wait for verification

Explore this link on the map →

saved by

related reading